make send()/recv() work on sockets (was Re: [PATCH] ash: clear NONBLOCK flag from stdin when in foreground)

Rich Felker dalias at aerifal.cx
Sun Aug 21 14:24:39 UTC 2011


On Sun, Aug 21, 2011 at 09:07:10AM +0200, Bernd Petrovitsch wrote:
> > >  Such code would be very wrong anyway, but theoretically correct, so if,
> > > say, a mainstream piece of software broke if recv() started working on
> > > non-sockets, then there would be a serious case against the change.
> >
> > Hmm, is there an process-specific means to stay
> > POSIX/backwards-compatible?
> 
> Hmm, some special new flag - MSG_WORKONFILES or so - which actually
> activates that behaviour?

This would be a perfect solution, although the name could use some
tweaking. :-)

Rich


More information about the busybox mailing list