Re: proposal: defer installing SIGCHLD

2012-05-23 Thread Marc Lehmann
On Wed, May 23, 2012 at 11:09:26PM +0200, Zsbán Ambrus wrote: > > That breaks existing applications, so, no. > > The problem is what happens if you want to use a child watcher to wait > on a child process that exits before you have started any child > watcher, right? That's the reason that some

Re: proposal: defer installing SIGCHLD

2012-05-23 Thread Zsbán Ambrus
On 5/23/12, Marc Lehmann wrote: > On Tue, May 22, 2012 at 01:21:35PM +0400, Denis Bilenko > wrote: >> The patch below defers installing SIGCHLD until the first child >> watcher is started. Thus, if an application does not use child >> watchers, libev never installs a SIGCHLD handler. > > That bre

Re: How to properly manage client disconnection?

2012-05-23 Thread Kevyn-Alexandre Paré
Hi Jonathan, On 2012-05-22, at 3:47 PM, Jonathan Neuschäfer wrote: > On Tue, May 22, 2012 at 03:32:35PM -0400, Kevyn-Alexandre Paré wrote: >> 1) Can I assume that if the recv return zero mean that the client have been >> disconnected? > > Yes, that's what the manpage states: > "The return value