|
Prev: China Drum Microphone - OEM Drum Microphone Manufacturer
Next: Do you get paid more than you deserve?
From: Joshua Swanson on 24 Apr 2008 17:15 So, I've got my server up and running nicely, but when the clients computer crashes without finishing the connection, leaving me with a broken pipe, it shuts down my server. What's the best way to handle this? I'm tempted just to throw in an ignore signal handle (signal(SIGPIPE, SIG_IGN) of the top of my head) and pay no attention to broken pipes, but I don't know enough to be sure this is always correct. For instance, I don't get why the signal is fatal by default, as it seems relatively minor. |