in reply to Re^2: Could not catch all children after fork, some of them never end
in thread Could not catch all children after fork, some of them never end

I think I may have oversimplified in my answer. I know that when you press control-c, the signal is delivered to the process currently attached to the terminal. Maybe the children take over from the parent when it exits if you didn't close STDIN and STDOUT before forking, but I would have to look it up and play around a bit to figure out exactly what happens. Sorry.
  • Comment on Re^3: Could not catch all children after fork, some of them never end