
12 Dec
2005
12 Dec
'05
11:51 p.m.
Hi Jeremy, --- Jeremy Maitin-Shepard <jbms@cmu.edu> wrote:
Christopher Kohlhoff <chris@kohlhoff.com> writes:
I agree, what you describe is the ideal solution. However I was unable to work out how to ignore the signal just for some operations. Can you tell me how to do this?
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. Cheers, Chris