summaryrefslogtreecommitdiff
path: root/usr.sbin/pstat
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2003-08-21 13:45:06 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2003-08-21 13:45:06 +0000
commit83bcdec0a5728c723a484c6e3203d38f1d481ed1 (patch)
tree55cbdf9a73da3ed5be24f6bd84c1a1c389296d36 /usr.sbin/pstat
parent0e298b235bacc8cf8690097d3ac754f9005240b4 (diff)
apache bug #21737 ( http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21737)
introduced with 1.3.28: Apparently there has been a regression in 1.3.28 from 1.3.27 whereby CGI scripts are getting left around as zombies when suexec is in use, apparently because of a change in src/main/alloc.c that altered the behavior when sending SIGTERM to a child process. With suexec, the SIGTERM at line 2862 will fail not because the subprocess is dead already but because the httpd uid has no permission to term the cgi process, which is running as some other user. fix by Ralf S. Engelschall: That is, we don't have to check for the return value of ap_os_kill() and especially not check for ESRCH, because we _HAVE_ to waitpid() for it anyway (because it's our child and it either is already terminated and is waiting as a zombie for our waitpid() or it is still running). Under Unix it cannot be that a (non-detached in the sense of BSD's daemon(3)) child of a process just does no longer exists as long as the parent still exists and as long as the parent still has not done waitpid() for the child. So ESRCH cannot happen in our situation and the patch we currently use is fully sufficient. Both are at least portable enough for Unix, of course...
Diffstat (limited to 'usr.sbin/pstat')
0 files changed, 0 insertions, 0 deletions