On Wed, Nov 07, 2007 at 11:19:24AM -0800, Jeff Haran wrote:
> > > The flags parameter to send() in linux has some bits that 
> > > might not be there in BSD (e.g. EPIPE).
> > 
> >   man 2 send
> > 
> > The EPIPE is possible error value, there is another bit for  flags
> > parameter.
> 
> Oops. Make that bit MSG_NOSIGNAL, which means a close on the peer gets
> you an EPIPE back in errno rather than a SIGPIPE signal.

Yeah, that one.  I wish it was universal bit.
I have to   signal(SIGPIPE, SIG_IGN);    to get that behaviour
universally -- and for write()s and ...

/Matti Aarnio
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to