Chaitanya
Chaitanya

Reputation: 3469

Avoiding SIGPIPE in mac osx - reg

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

Answers (1)

trojanfoe
trojanfoe

Reputation: 122391

How does ignoring SIGPIPE work?

signal(SIGPIPE, SIG_IGN);

Upvotes: 2

Related Questions