http://www.perlmonks.org?node_id=932472


in reply to Re: Monitoring Child Process
in thread Monitoring Child Process

I'm not sure what you mean, but I incorporated your suggestion and it didn't solve the problem.

When I run the script (without pressing ctrl-c), it will say something like this at the end...
Process 2555 exited. Process 2558 exited.
The problem is that I know the script create processes 2556 and 2557 and the REAPER subroutine somehow did not catch it and in reality these children have exited already.