lkml.org 
[lkml]   [2005]   [Jun]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Add pselect, ppoll system calls.
From
Date
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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-06-13 00:54    [W:0.067 / U:0.460 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site