summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2017-11-03 21:51:34 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2017-11-03 23:02:08 -0400
commit0e84df8180a646c8feb3e4b93bbe0731e2165d2e (patch)
tree01bdc1c324febf473c60858d01d3a18c216a2424
parentbfef0907bd11f6d516b72bf510ddd3ecdeceb11a (diff)
downloadlighttpd1.4-0e84df8180a646c8feb3e4b93bbe0731e2165d2e.tar.gz
lighttpd1.4-0e84df8180a646c8feb3e4b93bbe0731e2165d2e.zip
[core] fix lighttpd -1 one-shot graceful shutdown
fix lighttpd -1 graceful shutdown (one-shot mode) (regression in lighttpd 1.4.46)
-rw-r--r--src/server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server.c b/src/server.c
index f74191cc..c0d7c445 100644
--- a/src/server.c
+++ b/src/server.c
@@ -1342,7 +1342,7 @@ static int server_main (server * const srv, int argc, char **argv) {
}
#endif
graceful_restart = 0;/*(reset here after avoiding further daemonizing)*/
- graceful_shutdown= 0;
+ if (0 == oneshot_fd) graceful_shutdown = 0;
#ifdef HAVE_SIGACTION