mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
Close logging stuff so system doesn't have to (bug #1855)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3230 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -585,6 +585,10 @@ static void quit_handler(int num, int nice, int safeshutdown, int restart)
|
||||
if (option_verbose || option_console)
|
||||
ast_verbose("Restarting Asterisk NOW...\n");
|
||||
restartnow = 1;
|
||||
|
||||
/* close logger */
|
||||
close_logger();
|
||||
|
||||
/* If there is a consolethread running send it a SIGHUP
|
||||
so it can execvp, otherwise we can do it ourselves */
|
||||
if (consolethread != AST_PTHREADT_NULL) {
|
||||
@@ -594,6 +598,9 @@ static void quit_handler(int num, int nice, int safeshutdown, int restart)
|
||||
} else
|
||||
execvp(_argv[0], _argv);
|
||||
|
||||
} else {
|
||||
/* close logger */
|
||||
close_logger();
|
||||
}
|
||||
exit(0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user