From: Brian Havard Date: Sun, 11 Aug 2002 04:40:59 +0000 (+0000) Subject: Don't catch more than 1 SIGTERM in the parent process as doing so results X-Git-Tag: AGB_BEFORE_AAA_CHANGES~278 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=10aeb0a40cc2485345ccce46e239b417efebd952;p=apache Don't catch more than 1 SIGTERM in the parent process as doing so results in an unkillable process if shutdown_pending doesn't manage to trigger process exit. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96349 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/mpm/mpmt_os2/mpmt_os2.c b/server/mpm/mpmt_os2/mpmt_os2.c index 84addf8e69..8771b955fc 100644 --- a/server/mpm/mpmt_os2/mpmt_os2.c +++ b/server/mpm/mpmt_os2/mpmt_os2.c @@ -415,6 +415,7 @@ static void spawn_child(int slot) static void sig_term(int sig) { shutdown_pending = 1; + signal(SIGTERM, SIG_DFL); }