in reply to Finding if a child process has terminated

You could set a $SIG{CHLD} handler instead of using wait().

There are some examples in perlipc.

  • Comment on Re: Finding if a child process has terminated