SYSTEM command

Kenneth Brody kenbrody at bestweb.net
Sat Nov 20 06:55:06 PST 2004


Fairlight wrote:
> 
> You'll never BELIEVE what Kenneth Brody said here...:
> > >
> > > Yes, but you will then need to make sure you exit from
> > > the loop, otherwise you will have a zombie on your
> > > hands :-)
> >
> > The loop will exit when the read fails, which will happen when filePro
> > closes the pipe to it.
> 
> You'll possibly still end up with a zombie.  A client of mine once
> -insisted- that having one rclerk continuously running to handle CGI
> requests and then forking off other rclerk processes to handle the details
> was a good model.  His process tables got filled with zombies from this
> model.  AFAICT, fP doesn't wait on SIGCHLD, and you'll have a zombie until
> the clerk or report process itself goes away and takes its children with
> it for good.

A zombie is created when a process dies and its parent doesn't wait for it.
Don't die until filePro tells you to, and you won't have zombies.

-- 
+-------------------------+--------------------+-----------------------------+
| Kenneth J. Brody        | www.hvcomputer.com |                             |
| kenbrody/at\spamcop.net | www.fptech.com     | #include <std_disclaimer.h> |
+-------------------------+--------------------+-----------------------------+
Don't e-mail me at: <mailto:ThisIsASpamTrap at gmail.com>



More information about the Filepro-list mailing list