From: email@example.com (Rolf-Thomas Happe)
Date: 17 Sep 1996 10:49:02 GMT
I had read that (reap on next wait). But (with GNU Emacs 19.22,
Linux kernel 1.2.3) the zombies generated by run/port stay around
whereas I couldn't observe such a behavior with processes that have
simply been (run ...):
Think about it.
(RUN . epf)
(WAIT (& . epf))
So anything you do with RUN gets waited on automatically. That's the difference
between RUN and &.
RUN/PORT *doesn't* wait for the child it creates to die -- it fires up
the chile and returns the connecting port immediately, so you can overlap
your reading & processing with the child's processing & writing. When
the child dies, it will stay a zombie until the next time you either do
a wait (perhaps by executing a (RUN ...) form), or a (REAP-ZOMBIES).
As I said, now that (the currently under-development) scsh has signal
handlers, I can do better -- I can put a signal handler on the SIGCHLD
signal, and have the handler reap the zombie as soon as it dies.