diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-03-08 12:31:57 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:52:37 -0500 |
commit | 8bec5a464a88b9762d2dbef359aa7b118a65892f (patch) | |
tree | 80df4197cfdeef7873ebcf645d69d6ab33c0c833 /source4/smbd | |
parent | 30b4212a1a1101fee3ee8c9fe8fdc989bf9dc2b6 (diff) | |
download | samba-8bec5a464a88b9762d2dbef359aa7b118a65892f.tar.gz samba-8bec5a464a88b9762d2dbef359aa7b118a65892f.tar.bz2 samba-8bec5a464a88b9762d2dbef359aa7b118a65892f.zip |
r14038: reopen log files after a SIGHUP
metze
(This used to be commit 8e9a69171a03a1f886fcff911e8a923368645a54)
Diffstat (limited to 'source4/smbd')
-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); } /* |