public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jens-Uwe Mager <jum@anubis.han.de>
To: linux-kernel@vger.kernel.org
Subject: Re: pselect
Date: Mon, 19 Mar 2001 21:48:12 +0100	[thread overview]
Message-ID: <200103192048.VAA01122@anubis.han.de> (raw)
In-Reply-To: <mng==UTC200103181732.SAA08924.aeb@vlet.cwi.nl>
In-Reply-To: <mng==UTC200103181732.SAA08924.aeb@vlet.cwi.nl>

>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.)

Well, pselect is not that interesting I suppose, ppoll would be my
favorite call to make use of.

-- 
Jens-Uwe Mager	<pgp-mailto:62CFDB25>

       reply	other threads:[~2001-03-19 20:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mng==UTC200103181732.SAA08924.aeb@vlet.cwi.nl>
2001-03-19 20:48 ` Jens-Uwe Mager [this message]
2001-03-18 17:32 pselect Andries.Brouwer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200103192048.VAA01122@anubis.han.de \
    --to=jum@anubis.han.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox