Reputation: 3469
In order to avoid SIGPIPE in mac osx i tried using the flag
SO_NOSIGPIPE
which is equivalent of
MSG_NOSIGNAL
in linux. But still SIGPIPE error is coming. How to avoid it ?
Thanks in advance. :)
Upvotes: 1
Views: 1558
Reputation: 122391
How does ignoring SIGPIPE work?
SIGPIPE
signal(SIGPIPE, SIG_IGN);
Upvotes: 2