diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/application.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/application.c b/src/application.c index e0d989e5..881f0117 100644 --- a/src/application.c +++ b/src/application.c @@ -72,13 +72,18 @@ struct log_target *osmo_stderr_target; +static void sighup_hdlr(int signal) +{ + log_targets_reopen(); +} + /*! \brief Ignore \ref SIGPIPE, \ref SIGALRM, \ref SIGHUP and \ref SIGIO */ void osmo_init_ignore_signals(void) { /* Signals that by default would terminate */ signal(SIGPIPE, SIG_IGN); signal(SIGALRM, SIG_IGN); - signal(SIGHUP, SIG_IGN); + signal(SIGHUP, &sighup_hdlr); signal(SIGIO, SIG_IGN); } |