Re: Add pselect, ppoll system calls.
From: Alan Cox
Date: Sun Jun 12 2005 - 17:52:19 EST
On Gwe, 2005-06-10 at 23:58, David Woodhouse wrote:
> The idea of pselect is that if one wants to wait for an event, either a
> signal or something on a file descriptor, an atomic test is needed to
> prevent race conditions. (Suppose the signal handler sets a global flag
> and returns. Then a test of this global flag followed by a call of
> select() could hang indefinitely if the signal arrived just after the
> test but just before the call. On the other hand, pselect allows one to
See sleep(), going back to oh V7 unix. It has this avoided nicely in
user space using setjmp (nowdays using sigsetjmp).
If glibc has a race why not just fix glibc ?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/