diff options
Diffstat (limited to 'source4/smbd/server.c')
-rw-r--r-- | source4/smbd/server.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source4/smbd/server.c b/source4/smbd/server.c index b23a91769e..3036966f6a 100644 --- a/source4/smbd/server.c +++ b/source4/smbd/server.c @@ -98,6 +98,11 @@ static void cleanup_tmp_files(void) talloc_free(mem_ctx); } +static void sig_hup(int sig) +{ + debug_schedule_reopen_logs(); +} + /* setup signal masks */ @@ -124,9 +129,7 @@ static void setup_signals(void) BlockSignals(False, SIGHUP); BlockSignals(False, SIGTERM); - /* as we don't handle on this signals yet, we need to ignore them, - * instead of terminating */ - CatchSignal(SIGHUP, SIG_IGN); + CatchSignal(SIGHUP, sig_hup); } /* |