]> git.ipfire.org Git - thirdparty/samba.git/commit
s3: SIGHUP handlers use consistent log level 3
authorJones Syue <jonessyue@qnap.com>
Mon, 2 Sep 2024 09:11:00 +0000 (17:11 +0800)
committerMartin Schwenke <martins@samba.org>
Wed, 25 Sep 2024 01:38:02 +0000 (01:38 +0000)
commit4f3dfb2029c667b6dcd43223fe154dca59143e95
treef45b5e7e83f7d7c1cfedd687177844c21d889ea5
parentbb12f19e4fe100029c32bdab92aa6515be7e71f6
s3: SIGHUP handlers use consistent log level 3

When turn-on 'log level = 3', sending SIGHUP to samba processes, for
example: smbd parent/children, smbd-notifyd, and smbd-cleanupd. Then
monitor log.smbd in order to parse sighup logs, it looks like the log level
is inconsistent among these processes: smbd parent/children use level 1,
and smbd-notifyd/smbd-cleanupd use level 3.

This patch raises sighup handler's log level from level 1 to level 3, which
is more consistent with smbd-notifyd by Commit 6e5bff80a0a0b ("s3:notifyd:
Handle sigup in notifyd to reparse smb.conf"), and smbd-cleanupd by Commit
57c1e115ecef4 ("smbd: reopen logs on SIGHUP for notifyd and cleanupd").

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15706

Signed-off-by: Jones Syue <jonessyue@qnap.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Autobuild-User(master): Martin Schwenke <martins@samba.org>
Autobuild-Date(master): Wed Sep 25 01:38:02 UTC 2024 on atb-devel-224
source3/printing/queue_process.c
source3/smbd/server.c
source3/smbd/smb2_process.c
source3/winbindd/winbindd_dual.c