[core] exit 0 upon shutdown if no connections open
This commit is contained in:
parent
84c518ead0
commit
b2b15d9165
|
@ -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…
Reference in New Issue