sigpipe

How to prevent SIGPIPEs (or handle them properly).

I have a small server program that accepts connections on a TCP or local UNIX socket, reads a simple command and, depending on the command, sends a reply. The problem is that the client may have no interest in the answer sometimes and exits early, so writing to that socket will cause a SIGPIPE and make my server crash. What's the best pr...

How to catch sigpipe in iphone app?

Hi, How can i catch sigpipe in iphone/objective-c? thanks ...

Ignore SIGPIPE for a single popen'd FILE*

The code I am looking at is here: http://github.com/andymatuschak/Sparkle/blob/8ea15468b4a8c0487ca7a72f3c9e6ffb708c6af8/SUPipedUnarchiver.m Sparkle is like a plugin. It can be instantiated in a multi-threaded program. Thus I don't want to call signal(SIGPIPE, SIG_IGN) (ie. ignore all SIGPIPE) as who knows what other threads are doing/e...