notifyd: Move BlockSignals calls to server.c
commit698f6517866f567e999baf5b63ec7e6f5e9452a8
authorVolker Lendecke <vl@samba.org>
Tue, 19 Jul 2016 12:36:07 +0000 (19 14:36 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 20 Jul 2016 07:03:59 +0000 (20 09:03 +0200)
tree26d2eb1f5546c6bc1f9290522a782e029ec53873
parentfa96452f9cde535f3cfe31afe8c54199a940f027
notifyd: Move BlockSignals calls to server.c

notifyd_send() is called as part of smbd initialization both in normal daemon
mode after a fork, but also in interactive mode. In interactive mode, notifyd
should not modify the global signal state with BlockSignals(). This patch moves
the signal blocking to the place where we know that notifyd is a child daemon.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Jul 20 09:04:00 CEST 2016 on sn-devel-144
source3/smbd/notifyd/notifyd.c
source3/smbd/server.c