From: Ralph Boehme Date: Mon, 23 Nov 2020 15:44:04 +0000 (+0100) Subject: s4: call reopen_logs_internal() in the SIGHUP handler of the prefork process model X-Git-Tag: samba-4.14.0rc1~492 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19413e76a46f07fdd46fde5e60707bb6845a782d;p=thirdparty%2Fsamba.git s4: call reopen_logs_internal() in the SIGHUP handler of the prefork process model 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 Reviewed-by: Jeremy Allison --- diff --git a/source4/samba/process_prefork.c b/source4/samba/process_prefork.c index a0b47d3268d..934788a3e54 100644 --- a/source4/samba/process_prefork.c +++ b/source4/samba/process_prefork.c @@ -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,