diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-06-17 01:13:10 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-06-17 01:13:10 +0000 |
commit | 71e3b718a7901f9e718e7c977bfadfdd99d60043 (patch) | |
tree | 6a8ab80e7ff0be91d8f94be02d516136b0135804 /asterisk.c | |
parent | 13db3cf8f2771ad7089696ec8f62ad69f4923abb (diff) |
Close logging stuff so system doesn't have to (bug #1855)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3230 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'asterisk.c')
-rwxr-xr-x | asterisk.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/asterisk.c b/asterisk.c index d20f0aaaa..d3fbe528b 100755 --- a/asterisk.c +++ b/asterisk.c @@ -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); } |