in reply to Re: Communicate with child process via stdin, stdout
in thread Communicate with child process via stdin, stdout
waitpid($pid, 1); # It is important to waitpid on your child process, # otherwise zombies could be created.
As an aside, waitpid at the end of a script (as you have it here) is not important or necessary. Nothing bad will happen without it, as the OS will automatically reap any zombies when their parent process has gone away. In other words, zombies can only exist as long as the parent is still alive.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Communicate with child process via stdin, stdout
by locked_user sundialsvc4 (Abbot) on Nov 20, 2011 at 13:52 UTC | |
by Eliya (Vicar) on Nov 20, 2011 at 14:03 UTC |