summaryrefslogtreecommitdiff
path: root/src/ceph_osd.cc
diff options
context:
space:
mode:
authorSage Weil <sage.weil@dreamhost.com>2012-02-29 09:46:13 -0800
committerSage Weil <sage.weil@dreamhost.com>2012-02-29 09:46:13 -0800
commit052d64e1c4b5e499ee45d0a3c58efa4f8db1d931 (patch)
tree9c8593e1caeb48ddf9acae8799fe78d028234fbf /src/ceph_osd.cc
parentdb96831bbdaf0680adc4c4982b9d854e98042cf7 (diff)
downloadceph-052d64e1c4b5e499ee45d0a3c58efa4f8db1d931.tar.gz
osd: unregister signal handlers on shutdown
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Diffstat (limited to 'src/ceph_osd.cc')
-rw-r--r--src/ceph_osd.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ceph_osd.cc b/src/ceph_osd.cc
index 6ba7b76ca93..701662b15a3 100644
--- a/src/ceph_osd.cc
+++ b/src/ceph_osd.cc
@@ -422,6 +422,10 @@ int main(int argc, const char **argv)
messenger_hbout->wait();
cluster_messenger->wait();
+ unregister_async_signal_handler(SIGHUP, sighup_handler);
+ unregister_async_signal_handler(SIGINT, handle_osd_signal);
+ unregister_async_signal_handler(SIGTERM, handle_osd_signal);
+
// done
delete osd;
client_messenger->destroy();