> -----Original Message-----
> From: Matti Aarnio [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, November 07, 2007 11:10 AM
> To: Jeff Haran
> Cc: Mateus Interciso; Matti Aarnio; linux-net@vger.kernel.org
> Subject: Re: Difference between BSD sockets and Linux sockets
> 
> On Wed, Nov 07, 2007 at 10:25:37AM -0800, Jeff Haran wrote:
> ...
> > Some other potential differences that come to mind. Don't 
> quote me on
> > this, just going from memory.
> > 
> > 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.
-
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