An old problem rears its ugly head; apache does not close open file
descriptors before it execs cgi programs. This leads to a big mess if you happen to kill a spawned process, say with a DB table locked. Added a close loop to the top of the scripts. This whole apacge cgi approach is pretty stinky (slow). At some point need to switch to fastcgi or a separate server process.
Showing with 30 additions and 9 deletions