From a4094060f3b7f8fcbd383fc55affebed3b4bb11a Mon Sep 17 00:00:00 2001 From: Hemanth Thummala Date: Thu, 14 Apr 2016 13:09:37 -0700 Subject: [PATCH] Mask general purpose signals for notifyd. Currently there is no signal handling available for notify daemon. Signals like SIGHUP and SIGUSR1 can lead to terminate the notify daemon. Masking these signals for notifyd as we are not handling them. Signed-off-by: Hemanth Thummala --- source3/smbd/notifyd/notifyd.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/source3/smbd/notifyd/notifyd.c b/source3/smbd/notifyd/notifyd.c index 316cdea..49fb9c9 100644 --- a/source3/smbd/notifyd/notifyd.c +++ b/source3/smbd/notifyd/notifyd.c @@ -256,6 +256,10 @@ struct tevent_req *notifyd_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, return tevent_req_post(req, ev); } + /* Block those signals that we are not handling */ + BlockSignals(True, SIGHUP); + BlockSignals(True, SIGUSR1); + if (ctdbd_conn == NULL) { /* * No cluster around, skip the database replication -- 1.7.1