in reply to fork exits prematurely leaving zombies

How do you start your processes? If they are started in the background, then the child could return without waiting for the process to complete. Also, if your process terminated before creating the file to publich, then, of course, there would be nothing to publish.
  • Comment on Re: fork exits prematurely leaving zombies

Replies are listed 'Best First'.
Re: Re: fork exits prematurely leaving zombies
by perllearner (Novice) on May 11, 2004 at 19:20 UTC
    thanks for your reply. sorry for not being clear earlier. the processes A and B are two additional perl scripts being run. And process C is a C-program. All of them are essentially running in background. Somehow i dont see the early exit at all times, but about 50% of the time.

    Any other ways I could wait till a background process is complete.