We don't need sig_quit
This commit is contained in:
parent
8301d3d9f3
commit
a88f7fb392
|
@ -233,7 +233,7 @@ int main(int argc, char **argv) {
|
||||||
/* We listen to SIGTERM/QUIT/INT and try to exit cleanly, by stopping the main-loop.
|
/* We listen to SIGTERM/QUIT/INT and try to exit cleanly, by stopping the main-loop.
|
||||||
* We only need those watchers on the stack, so putting them on the stack saves us
|
* We only need those watchers on the stack, so putting them on the stack saves us
|
||||||
* some calls to free() */
|
* some calls to free() */
|
||||||
ev_signal sig_term, sig_quit, sig_int, sig_hup;
|
ev_signal sig_term, sig_int, sig_hup;
|
||||||
|
|
||||||
ev_signal_init(&sig_term, &sig_cb, SIGTERM);
|
ev_signal_init(&sig_term, &sig_cb, SIGTERM);
|
||||||
ev_signal_init(&sig_int, &sig_cb, SIGINT);
|
ev_signal_init(&sig_int, &sig_cb, SIGINT);
|
||||||
|
|
Loading…
Reference in New Issue