diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpc_server/mdssd.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source3/rpc_server/mdssd.c b/source3/rpc_server/mdssd.c index 80330a15aa1..623074f0dae 100644 --- a/source3/rpc_server/mdssd.c +++ b/source3/rpc_server/mdssd.c @@ -94,8 +94,7 @@ static void mdssd_sig_term_handler(struct tevent_context *ev, { shutdown_rpc_module("mdssvc"); - DEBUG(0, ("termination signal\n")); - exit(0); + exit_server_cleanly("termination signal"); } static void mdssd_setup_sig_term_handler(struct tevent_context *ev_ctx) @@ -108,8 +107,7 @@ static void mdssd_setup_sig_term_handler(struct tevent_context *ev_ctx) mdssd_sig_term_handler, NULL); if (!se) { - DEBUG(0, ("failed to setup SIGTERM handler\n")); - exit(1); + exit_server("failed to setup SIGTERM handler"); } } |