On Tuesday 14 August 2007 22:59, David Schwartz wrote:
> > The problem is, O_NONBLOCK flag is not attached to file *descriptor*,
> > but to a "file description" mentioned in fcntl manpage:
>
> [snip]
>
> > We don't know whether our stdout descriptor #1 is shared with
> > anyone or not,
> > and if w
On Tuesday 14 August 2007 13:33, Alan Cox wrote:
> > 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 t
> The problem is, O_NONBLOCK flag is not attached to file *descriptor*,
> but to a "file description" mentioned in fcntl manpage:
[snip]
> We don't know whether our stdout descriptor #1 is shared with
> anyone or not,
> and if we were started from shell, it typically is. That's why we try to
> res
On Aug 14 2007 13:33, Alan Cox wrote:
>
>> 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 l
> 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
5 matches
Mail list logo