Accelerated daemon quitting
This commit is contained in:
parent
13892fcd0e
commit
efd500ca3c
|
@ -2586,9 +2586,13 @@ on_termination_signal (EV_P_ ev_signal *handle, int revents)
|
|||
(void) handle;
|
||||
(void) revents;
|
||||
|
||||
// TODO: consider quitting right away if already quitting;
|
||||
// considering that this may already happen in timeout, it should be OK;
|
||||
// see on_quit_timeout, just destroy all clients
|
||||
if (ctx->quitting)
|
||||
{
|
||||
// Double C-c from the terminal accelerates the process
|
||||
LIST_FOR_EACH (struct client, iter, ctx->clients)
|
||||
client_destroy (iter);
|
||||
}
|
||||
else
|
||||
initiate_quit (ctx);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue