in reply to PleaSe WAIT for the process to end.

Will this help is eliminating zombie processes or defunct processes? I use a perl script that retrieves several webpages and it is called every minute as a cron job. Occasional zombie processes result causing the cron job to skip a minute as the process hasn't been removed. 1. would this help in controlling the number of zombie processes? 2. Could this script be modified for use by another script? Jim
  • Comment on Re: PleaSe WAIT for the process to end.

Replies are listed 'Best First'.
Re: Re: PleaSe WAIT for the process to end.
by dominix (Deacon) on Feb 14, 2004 at 05:12 UTC
    in this state, this script doesn't interact with processes. It just monitor them and inform you when something append.
    So 1. you can use this script to monitor your process stream, and wait for less zombie to continue, but that may not be what you want. I think your problem is somewhere else, related to wait or fork you should better rewrite tune your script to keep a clean control over it. Or at least detach from cron.
    Did you check possible process number/resource/ulimit limitation ?
    NB: look for zombie in Super search, it will help.
    NB: subscribe to perlmonks, so you can have a message when someone reply to you.
    --
    dominix