]> git.ipfire.org Git - thirdparty/samba.git/commit
s3:notifyd: Handle sigup in notifyd to reparse smb.conf
authorShyamsunder Rathi <shyam.rathi@nutanix.com>
Sat, 18 May 2019 01:34:04 +0000 (18:34 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 27 Jun 2019 17:57:12 +0000 (17:57 +0000)
commit6e5bff80a0a0b5e999a9327640f3aa01b9f18777
treef495943037af376dff2a44374409c34f7e2df78c
parent9920aefd4e12e66b5e43469202c05962fa44035f
s3:notifyd: Handle sigup in notifyd to reparse smb.conf

At present, SIGHUP is blocked on notifyd. So, if parent smbd
is started with "log level" 10 in smb.conf, and later changed
to 0, the SIGHUP will not change the log level to 0 in notify
smbd process and it will keep printing verbose logs in the
corresponding log files.

Proposed fix is to write a SIGHUP handler for notifyd and set
it to reload services.

Reviewed-by: Hemanth Thummala <hemanth.thummala@nutanix.com>
Signed-off-by: Shyamsunder Rathi <shyam.rathi@nutanix.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by:Volker Lendecke <vl@samba.org>

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Jun 27 17:57:12 UTC 2019 on sn-devel-184
source3/smbd/server.c