summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSage Weil <sage.weil@dreamhost.com>2012-01-28 09:26:46 -0800
committerSage Weil <sage.weil@dreamhost.com>2012-01-28 09:26:46 -0800
commite43db381a23fc6fe670d2207d46303c423497796 (patch)
treecc92189a1db9b0b49dfe89301e1b4f2cee7372f8
parent0f9c6b433405e0d7d38adbb2d1ebc3c169c7bb1c (diff)
downloadceph-e43db381a23fc6fe670d2207d46303c423497796.tar.gz
signal: use _exit() on SIGTERM
No need to call onexit handlers, static dtors, whatever. This may help with #1996 and #1549. Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
-rw-r--r--src/global/signal_handler.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/global/signal_handler.cc b/src/global/signal_handler.cc
index 6a6691e7655..950315f9cfe 100644
--- a/src/global/signal_handler.cc
+++ b/src/global/signal_handler.cc
@@ -82,7 +82,7 @@ static void handle_shutdown_signal(int signum)
dout_emergency(buf);
pidfile_remove();
if (signum == SIGTERM)
- exit(0);
+ _exit(0);
else
reraise_fatal(signum);
}