Re: Fw: sigwait() breaks when straced

From: Dave Airlie
Date: Sun Jul 31 2005 - 19:13:50 EST

> However, there is in fact no bug here. The test program is just wrong.
> sigwait returns zero or an error number, as POSIX specifies. Conversely,
> sigtimedwait and sigwaitinfo either return 0 or set errno and return -1.
> It is odd that the interfaces of related functions differ in this way,
> but they do.

The someone should fix the manpage, it explicitly says
"The sigwait function never returns an error."

Which is clearly wrong if it can return EINTR...

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at