On 8/22/07, <b class="gmail_sendername">Claes Wikström</b> <<a href="mailto:klacke@hyber.org">klacke@hyber.org</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
This is a bit like trying to do something clever when malloc()<br>fails - pondering on the issue for a couple of years eventually<br>the only sane thing to do is exit(1), same thing with accept() here.<br></blockquote></div>
<br>That's pretty much the conclusion I came to.  In the application I'm writing (that got me going down this road in the first place) I'm just bailing on that process.  But, I should probably exit the whole app.
<br><br>But, beyond that, some simple exit handling makes the blocking sub-process work great for making a parallel TCP server.<br><br>-- Samuel<br>