Re: Difference between BSD sockets and Linux sockets

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux