mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Ulrich Drepper" <drepper@gmail.com>
To: "Michael Kerrisk" <mtk.manpages@googlemail.com>
Cc: "Ulrich Drepper" <drepper@redhat.com>,
	"Andrew Morton" <akpm@linux-foundation.org>,
	"Al Viro" <viro@zeniv.linux.org.uk>,
	lkml <linux-kernel@vger.kernel.org>,
	"Davide Libenzi" <davidel@xmailserver.org>
Subject: Re: No NONBLOCK flag for dup3() or epoll_create1()?
Date: Mon, 1 Sep 2008 17:34:03 -0700	[thread overview]
Message-ID: <a36005b50809011734w73f48dc1l68853e4e73309c2a@mail.gmail.com> (raw)
In-Reply-To: <48AC4B19.6000206@gmail.com>

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.

  parent reply	other threads:[~2008-09-02  0:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-20 16:49 Michael Kerrisk
2008-08-24 19:35 ` Davide Libenzi
2008-08-29 20:44 ` Michael Kerrisk
2008-09-02  0:34 ` Ulrich Drepper [this message]
2008-09-02  5:06   ` Michael Kerrisk
2008-09-02  5:07   ` Michael Kerrisk

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=a36005b50809011734w73f48dc1l68853e4e73309c2a@mail.gmail.com \
    --to=drepper@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=davidel@xmailserver.org \
    --cc=drepper@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mtk.manpages@googlemail.com \
    --cc=viro@zeniv.linux.org.uk \
    /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

Powered by JetHome