From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Denys Vlasenko <vda.linux@googlemail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: O_NONBLOCK is broken
Date: Tue, 14 Aug 2007 13:33:19 +0100 [thread overview]
Message-ID: <20070814133319.1a8a4871@the-village.bc.nu> (raw)
In-Reply-To: <200708141241.44021.vda.linux@googlemail.com>
> b) Make recv(fd, buf, size, flags) and send(fd, buf, size, flags);
> work with non-socket fds too, for flags==0 or flags==MSG_DONTWAIT.
> (it's ok to fail with "socket op on non-socket fd" for other values
> of flags)
I think that makes a lot of sense, and to be honest other MSG_ flags make
useful sense and have meaningful semantics that might be helpful
elsewhere if ever coded that way.
If you want to do this the first job is going to be to sort out the way
non-block is propogated to device driver read/write handlers. At the
moment they all check filp->f_flags
Alan
next prev parent reply other threads:[~2007-08-14 12:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-14 11:41 Denys Vlasenko
2007-08-14 12:33 ` Alan Cox [this message]
2007-08-14 17:28 ` Jan Engelhardt
2007-08-19 12:50 ` [PATCH] allow send/recv(MSG_DONTWAIT) on non-sockets (was Re: O_NONBLOCK is broken) Denys Vlasenko
2007-08-14 21:59 ` O_NONBLOCK is broken David Schwartz
2007-08-19 12:50 ` Denys Vlasenko
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=20070814133319.1a8a4871@the-village.bc.nu \
--to=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=vda.linux@googlemail.com \
/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
all inboxes | Powered by JetHome®