
13 Dec
2005
13 Dec
'05
3:14 a.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