[lkml]   [2008]   [Sep]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Rationale for paccept() sigset argument?
On Wed, Aug 20, 2008 at 9:50 AM, Michael Kerrisk
<> wrote:
> What is the rationale for the sigset argument of paccept()?

accept, like select/poll, is used often as a function to dealy
operation. Unlike read, recv, etc, which are handled using O_NONBLOCK
and select/poll. pselect/ppoll do not really have a sigset parameter
to handle signals in general. You use it to enable special handling
in case of blocking. Example: if you want to implement userlevel
context switching, you dedicate a signal to wake up any blocked
thread. Since accept falls more into the same category than poll,
this means the sigset parameter is justified. In theory we could add
it to all functions but there is no reason to do this without any
other reason to change the interface.

 \ /
  Last update: 2008-09-02 02:51    [from the cache]
©2003-2011 Jasper Spaans. Advertise on this site