in reply to Complete part of a cgi script before the rest
See Watching long processes through CGI.
When cooking a turkey, or a CGI script, you must stick a fork in it to see if it is done.