in reply to Re^5: Handling sockets in a server
in thread Handling sockets in a server

Is there anyone that can help out with questions 3 and 4 in the original post of this thread 501889. Thanks!

Shannon Kerr

Replies are listed 'Best First'.
Re^7: Handling sockets in a server
by skerr1 (Sexton) on Dec 01, 2005 at 04:10 UTC

    For 3, the answer is my handling via $SIG{'CHLD'} is sufficient, if done properly. I wanted the parent process to check the return value of each child process, and wanted the child processes of the parent to just reap their child processes, so the function called when receiving the child signal had to handle the reaping differently for the parent than the children.

    For 4, yes, you have to reset the STDERR and STDOUT if you want them redirected in the child processes.

    Shannon Kerr