[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-net
Subject:    Re: Difference between BSD sockets and Linux sockets
From:       Matti Aarnio <matti.aarnio () zmailer ! org>
Date:       2007-11-07 19:34:55
Message-ID: 20071107193455.GU6372 () mea-ext ! zmailer ! org
[Download RAW message or body]

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 majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic