summaryrefslogtreecommitdiff
path: root/src/account-server/main-account.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2009-10-17 21:38:58 +0200
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2009-10-17 21:41:35 +0200
commita5666899266206df082c202e5c0ee1e7e3cb8e63 (patch)
tree0050b34e01c16f1c83302394595cfbe3fa197c12 /src/account-server/main-account.cpp
parentce2fc28dc790b02c7a9beb99ca39204aa78906ab (diff)
downloadmanaserv-a5666899266206df082c202e5c0ee1e7e3cb8e63.tar.gz
manaserv-a5666899266206df082c202e5c0ee1e7e3cb8e63.tar.bz2
manaserv-a5666899266206df082c202e5c0ee1e7e3cb8e63.tar.xz
manaserv-a5666899266206df082c202e5c0ee1e7e3cb8e63.zip
Also close gracefully on receiving the TERM signal
Probably the most important signal to handle gracefully...
Diffstat (limited to 'src/account-server/main-account.cpp')
-rw-r--r--src/account-server/main-account.cpp1
1 files changed, 1 insertions, 0 deletions
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);