]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4: call reopen_logs_internal() in the SIGHUP handler of the prefork process model
authorRalph Boehme <slow@samba.org>
Mon, 23 Nov 2020 15:44:04 +0000 (16:44 +0100)
committerJeremy Allison <jra@samba.org>
Mon, 7 Dec 2020 17:54:10 +0000 (17:54 +0000)
With debug_schedule_reopen_logs() the actual reopen only takes place at some
point in the future when a DEBUG message is processed.

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

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/samba/process_prefork.c

index a0b47d3268d4322f7f6700d17c879d47309cc95f..934788a3e5444d44beaf6eaf3b3c8b46b08bc7b3 100644 (file)
@@ -115,7 +115,7 @@ static void sighup_signal_handler(struct tevent_context *ev,
                                int signum, int count, void *siginfo,
                                void *private_data)
 {
-       debug_schedule_reopen_logs();
+       reopen_logs_internal();
 }
 
 static void sigterm_signal_handler(struct tevent_context *ev,