If you read the OP's question, you'll see it pertains to the effect on the CGI script. What you posted says nothing about what happens to the CGI script. Does it get killed? Does it get sent a signal? If so, what's the default action of that signal? Does its STDOUT get closed?