summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2020-11-23 16:44:04 +0100
committerKarolin Seeger <kseeger@samba.org>2020-12-09 10:44:15 +0000
commitb50ef6fa897b2c007e17a0ccb38e04bdeb7cec00 (patch)
treea930a03c9ef5c160ddf39ea7e776beada65785b5
parent1a6f2871036f5271aefa63f745e691a38684b40e (diff)
downloadsamba-b50ef6fa897b2c007e17a0ccb38e04bdeb7cec00.tar.gz
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 <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 19413e76a46f07fdd46fde5e60707bb6845a782d)
-rw-r--r--source4/smbd/process_prefork.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/smbd/process_prefork.c b/source4/smbd/process_prefork.c
index 950db6a1c7d..73b4d3a11d9 100644
--- a/source4/smbd/process_prefork.c
+++ b/source4/smbd/process_prefork.c
@@ -114,7 +114,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,