[core] exit 0 upon shutdown if no connections open

This commit is contained in:
Glenn Strauss 2021-04-07 16:31:55 -04:00
parent 84c518ead0
commit b2b15d9165
1 changed files with 1 additions and 0 deletions

View File

@ -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");