From: Christopher Kohlhoff (chris_at_[hidden])
Date: 2005-12-12 18:51:59


Hi Jeremy,

--- Jeremy Maitin-Shepard <jbms_at_[hidden]> wrote:
> Christopher Kohlhoff <chris_at_[hidden]> 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