Browse Source

[core] exit 0 upon shutdown if no connections open

master
Glenn Strauss 8 months ago
parent
commit
b2b15d9165
  1. 1
      src/server.c

1
src/server.c

@ -2007,6 +2007,7 @@ int main (int argc, char **argv) {
server_graceful_state(srv);
}
if (0 == srv->conns.used) rc = 0;
if (2 == graceful_shutdown) { /* value 2 indicates idle timeout */
log_error(srv->errh, __FILE__, __LINE__,
"server stopped after idle timeout");

Loading…
Cancel
Save