in reply to mod_perl, long running process and broken connections

If you fork off the graphics rendering and watch in the parent, as you are considering, it is very easy to knock off the child with,

kill 'INT', $cpid; waitpid $cpid;
You set $cpid from the return value of fork or open in the parent.

After Compline,
Zaxo