Merge: nitcorn: handle SIGINT and SIGTERM
authorJean Privat <jean@pryen.org>
Mon, 24 Oct 2016 13:35:10 +0000 (09:35 -0400)
committerJean Privat <jean@pryen.org>
Mon, 24 Oct 2016 13:35:10 +0000 (09:35 -0400)
Intercept SIGINT and SIGTERM to close the server cleanly. The first signal request a clean exit from libevent, so it waits to complete the active events before closing. The second signal reverts to the default signal handler and quits instantly.

Fix #2294.

Pull-Request: #2323
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Ait younes Mehdi Adel <overpex@gmail.com>

1  2 
lib/libevent.nit

Simple merge