diff options
author | Jan Kaluža <jkaluza@apache.org> | 2014-08-18 13:51:01 +0200 |
---|---|---|
committer | Jan Kaluža <jkaluza@apache.org> | 2014-08-18 13:51:01 +0200 |
commit | 1a3f433294b4296171a77dd16089994cc0381257 (patch) | |
tree | 0f4b864ecea80bbcc78097d1f4e1559c20829051 /modules/arch | |
parent | mod_systemd: Add IdleShutdown - number of seconds in idle-state after which (diff) | |
download | apache2-1a3f433294b4296171a77dd16089994cc0381257.tar.xz apache2-1a3f433294b4296171a77dd16089994cc0381257.zip |
mod_systemd: Use AP_SIG_GRACEFUL instead of SIGWINCH.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1618588 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/arch')
-rw-r--r-- | modules/arch/unix/mod_systemd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/arch/unix/mod_systemd.c b/modules/arch/unix/mod_systemd.c index 6f34fe44d3..5381c986e7 100644 --- a/modules/arch/unix/mod_systemd.c +++ b/modules/arch/unix/mod_systemd.c @@ -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 { |