]> granicus.if.org Git - apache/commitdiff
mod_systemd: Use AP_SIG_GRACEFUL instead of SIGWINCH.
authorJan Kaluža <jkaluza@apache.org>
Mon, 18 Aug 2014 11:51:01 +0000 (11:51 +0000)
committerJan Kaluža <jkaluza@apache.org>
Mon, 18 Aug 2014 11:51:01 +0000 (11:51 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1618588 13f79535-47bb-0310-9956-ffa450edef68

modules/arch/unix/mod_systemd.c

index 6f34fe44d3a3df147c8e687e69447fe0a97a6c44..5381c986e784991e47d639c2d8119a38929560ec 100644 (file)
@@ -85,6 +85,7 @@ static int systemd_monitor(apr_pool_t *p, server_rec *s)
 
     /* Shutdown httpd when nothing is sent for shutdown_timer seconds. */
     if (sload.bytes_served == bytes_served) {
+        /* mpm_common.c: INTERVAL_OF_WRITABLE_PROBES is 10 */
         shutdown_counter += 10;
         if (shutdown_timer > 0 && shutdown_counter >= shutdown_timer) {
             rv = sd_notifyf(0, "READY=1\n"
@@ -94,7 +95,7 @@ static int systemd_monitor(apr_pool_t *p, server_rec *s)
                 ap_log_error(APLOG_MARK, APLOG_ERR, 0, s, APLOGNO(02804)
                             "sd_notifyf returned an error %d", rv);
             }
-            kill(mainpid, SIGWINCH);
+            kill(mainpid, AP_SIG_GRACEFUL);
         }
     }
     else {