in reply to forking, waiting, and killing child pids

I did something similar a while ago at Timing and timing out Unix commands -- this node includes a complete example Unix program that does something very similar to what you describe.

  • Comment on Re: forking, waiting, and killing child pids