Hi Anton,

On Thu, Mar 01, 2007 at 03:17:29PM +0300, Anton Yuzhaninov wrote:
> Hello.
> 
> Is SO_NOSIGPIPE work?
> 
> It try to set on socket option SO_NOSIGPIPE but anyway process
> received sigpipe.
> 
It works, but only if you use send() instead of write().
Alternatively, you can control the behavior on a per
message basis, by passing the MSG_NOSIGNAL in the "flags"
argument to the send() call (without having to set a
socket option).


Cheers,
-- 
Ruslan Ermilov
[EMAIL PROTECTED]
FreeBSD committer

Attachment: pgpQbZCfq1588.pgp
Description: PGP signature

Reply via email to