Re: Add pselect, ppoll system calls.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux