Thanks for the feedback. I've added the chdir as suggested. It was already clearing the umask and setting itself as a process group leader with setpgrp(). After giving it some thought though, I'm not going to add a use of POSIX because it's just too heavy of a module to saddle someone with. Ditto on closing all files. I am considering having it re-open STDIN, STDOUT and STDERR onto /dev/null, though.
--rjray
In reply to Re: Re: Forking the polite way
by rjray
in thread Forking the polite way
by rjray
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |