
12 Dec
2005
12 Dec
'05
8:14 p.m.
Christopher Kohlhoff <chris@kohlhoff.com> writes:
[snip]
Yes, simply include the MSG_NOSIGNAL flag in the call to send or sendto.
Unfortunately this flag doesn't seem to be available on Solaris, which does raise SIGPIPE too. It also doesn't work with writev.
I don't know about Solaris, but maybe SIGPIPE could be blocked only on Solaris. Instead of using writev, you can use sendmsg on Linux. -- Jeremy Maitin-Shepard