public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* pselect
@ 2001-03-18 17:32 Andries.Brouwer
  0 siblings, 0 replies; 2+ messages in thread
From: Andries.Brouwer @ 2001-03-18 17:32 UTC (permalink / raw)
  To: linux-kernel

For people who prefer programming above documenting,
here is a simple small thing to do:

POSIX.1g and Austin document a pselect() call intended to
remove the race condition that is present when one wants
to wait on either a signal or some file descriptor.
(See also Stevens, Unix Network Programming, Volume 1, 2nd Ed.,
1998, p. 168 and the pselect.2 man page released today.)
Glibc 2.0 has a bad version (wrong number of parameters)
and glibc 2.1 a better version, but the whole purpose
of pselect is to avoid the race, and glibc cannot do that,
one needs kernel support.
So, probably someone should make a system call pselect
almost identical to the present select, adding a sigmask
parameter. (Or something more general.)

Andries

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-03-19 20:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mng==UTC200103181732.SAA08924.aeb@vlet.cwi.nl>
2001-03-19 20:48 ` pselect Jens-Uwe Mager
2001-03-18 17:32 pselect Andries.Brouwer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox