handle eof in cgi_stdout_readevent to fix potential double free in cgi_event_finish

change execution order of event handler and event finish functions

use sigterm to kill cgi scripts

test cgi kill

(0) -300 -100 -30 -10 -4 +4 +10 +30 tip

mercurial