From a5666899266206df082c202e5c0ee1e7e3cb8e63 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Sat, 17 Oct 2009 21:38:58 +0200 Subject: Also close gracefully on receiving the TERM signal Probably the most important signal to handle gracefully... --- src/account-server/main-account.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/account-server/main-account.cpp') diff --git a/src/account-server/main-account.cpp b/src/account-server/main-account.cpp index 9d2e9710..06c11c95 100644 --- a/src/account-server/main-account.cpp +++ b/src/account-server/main-account.cpp @@ -94,6 +94,7 @@ static void initialize() signal(SIGQUIT, closeGracefully); #endif signal(SIGINT, closeGracefully); + signal(SIGTERM, closeGracefully); // Set enet to quit on exit. atexit(enet_deinitialize); -- cgit v1.2.3-60-g2f50