A common use of CGI scripts is to do some long processing. For example:
- automatic e-mailer
- verifying CAPTCHA by contacting remote server
- payment processing
We'll execute a child, daemonise, and work. We can't just execute because the web server's behaviour isn't known: most servers will wait until the file descriptors have closed (including stderr!); others will exit when the first child exits.