From: Jean Privat Date: Mon, 24 Oct 2016 13:35:10 +0000 (-0400) Subject: Merge: nitcorn: handle SIGINT and SIGTERM X-Git-Url: http://nitlanguage.org Merge: nitcorn: handle SIGINT and SIGTERM 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 Reviewed-by: Ait younes Mehdi Adel --- e29762ebe29c86649597a484f2990e75b4e140de