handling borken pipes
- From: "Joshua Swanson" <ielond.kharas@xxxxxxxxx>
- Date: Thu, 24 Apr 2008 14:15:14 -0700
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.
.
- Follow-Ups:
- Re: handling borken pipes
- From: ppi
- Re: handling borken pipes
- From: santosh
- Re: handling borken pipes
- Prev by Date: Re: Loop unrolling
- Next by Date: Re: Merits of callee-saved registers
- Previous by thread: China Drum Microphone - OEM Drum Microphone Manufacturer
- Next by thread: Re: handling borken pipes
- Index(es):
Relevant Pages
|