Skip to content

Commit

Permalink
Fix #87: segfault on shutdown
Browse files Browse the repository at this point in the history
Regression introduced in in 36295e3, for issue #82.

Signed-off-by: Joachim Wiberg <[email protected]>
  • Loading branch information
troglobit committed Jul 21, 2024
1 parent 14a4eb9 commit 6df7144
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/syslogd.c
Original file line number Diff line number Diff line change
Expand Up @@ -2580,11 +2580,6 @@ void die(int signo)
*/
timer_exit();

/*
* Close all open log files.
*/
close_open_log_files();

/*
* Close all UNIX and inet sockets
*/
Expand All @@ -2594,6 +2589,11 @@ void die(int signo)
free(pe);
}

/*
* Close all open log files.
*/
close_open_log_files();

kern_console_on();

exit(0);
Expand Down

0 comments on commit 6df7144

Please sign in to comment.