Note that if your forked child inherits system file descriptors like
STDIN and
STDOUT that are actually connected by a pipe or socket, even if you exit, then the remote server (such as, say, httpd or rsh) won't think you're done. You should reopen those to
/dev/null if it's any issue.