[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Spiffy subprocess cleanup
From: |
Peter Bex |
Subject: |
Re: [Chicken-users] Spiffy subprocess cleanup |
Date: |
Thu, 23 May 2013 09:14:25 +0200 |
User-agent: |
Mutt/1.4.2.3i |
On Wed, May 22, 2013 at 10:29:03PM -0700, Evan Hanson wrote:
> After looking at a bit more, here's what I believe is *actually*
> happening:
>
> The invalid call to process* is signaling an exception in the child,
> which is handled internally by spiffy (spiffy.scm:470), causing that
> process to loop back to the start of the accept-next-connection
> procedure inside spiffy's accept-loop. At this point you have two
> processes listening on 8080, with the parent waiting for the child (who
> has no plans to exit). The same thing happens with each request, so the
> subprocesses pile up.
Thanks for the excellent debugging work. I think process-fork really
needs to catch exceptions and exit instead of simply exiting if the
thunk returns normally. Will post a patch later, unless someone beats
me to it.
Cheers,
Peter
--
http://www.more-magic.net