summaryrefslogtreecommitdiff
path: root/os
diff options
context:
space:
mode:
authorYann Ylavic <ylavic@apache.org>2017-09-28 11:31:57 +0000
committerYann Ylavic <ylavic@apache.org>2017-09-28 11:31:57 +0000
commit1ebc68400d1239d9cb0a289e0fb200682a8717d3 (patch)
tree8a6ab820feae56e60ae24a3e4f6f114f84a0b76c /os
parenta16360a61f035c60b93e11ab8578c02a570fcec3 (diff)
downloadhttpd-1ebc68400d1239d9cb0a289e0fb200682a8717d3.tar.gz
MPMs unix: follow up to r1809881 and r1809973.
unset_signals() is called when ap_pglobal is destroyed too. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1809976 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'os')
-rw-r--r--os/unix/unixd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/os/unix/unixd.c b/os/unix/unixd.c
index b17b6ac2e3..7f71d1a642 100644
--- a/os/unix/unixd.c
+++ b/os/unix/unixd.c
@@ -497,6 +497,10 @@ static void sig_restart(int sig)
static apr_status_t unset_signals(void *unused)
{
+ if (!retained_data) {
+ /* Main process (ap_pglobal) is dying */
+ return APR_SUCCESS;
+ }
retained_data->shutdown_pending = retained_data->restart_pending = 0;
retained_data->was_graceful = !retained_data->is_ungraceful;
retained_data->is_ungraceful = 0;