lkml.org 
[lkml]   [2008]   [Sep]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: No NONBLOCK flag for dup3() or epoll_create1()?
On Wed, Aug 20, 2008 at 9:49 AM, Michael Kerrisk
<mtk.manpages@googlemail.com> wrote:
> I've been doing some testing (2.6.27-rc3) of your new
> file-descriptor-creating syscalls that accept flags. According to
>
> http://udrepper.livejournal.com/20407.html
>
> all of the system calls should accept a *_NONBLOCK flag.

This was never the intention.


> For epoll_create1() this certainly appears to be an oversight, since I can't
> think of a reason not to support *_NONBLOCK.

I can. There is already a method to not block (zero timeout). We
should not provide multiple ways to get the same functionality. It
would require changes in the epoll code as well. That's not worth it.


> (Furthermore, given a open file description for which O_NONBLOCK is
> already enabled, it is not possible to make a dup3() call that disables
> O_NONBLOCK, which is an odd asymmetry in the API.)

That's why I didn't add support for the flag. It's hardly useful to
add this support.


\
 
 \ /
  Last update: 2008-09-02 02:37    [W:0.047 / U:2.320 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site