Originally Posted by
CornedBee
Interesting. When I have a job that gets stopped when backgrounded (like top), bash will simply refuse to close. If I start "cat /dev/zero" in the background, it will get killed. But "cat /dev/zero > /dev/null &" keeps running, probably because it's not attached to the console.
So apparently it's not killing the shell that kills the sub-program, but closing its TTY. If your little program closes stdout or never tries to write to eat, that probably explains why it keeps running.