diff options
author | Mark Spencer <markster@digium.com> | 2003-07-09 13:45:59 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2003-07-09 13:45:59 +0000 |
commit | e74c5226f32e72c6308f8091ca1b6df574bf7d4d (patch) | |
tree | ccb031421bfb3b5de1b346c0ad6fc80ec92c403f | |
parent | 26fab309726ed32607858f8514b78ac5d28a7481 (diff) |
Don't delete PID file on exit of asterisk -r
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1172 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rwxr-xr-x | asterisk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/asterisk.c b/asterisk.c index 820c52ff9..05b84308f 100755 --- a/asterisk.c +++ b/asterisk.c @@ -425,7 +425,7 @@ static void quit_handler(int num, int nice, int safeshutdown, int restart) close(ast_consock); if (ast_socket > -1) unlink((char *)ast_config_AST_SOCKET); - unlink((char *)ast_config_AST_PID); + if (!option_remote) unlink((char *)ast_config_AST_PID); printf(term_quit()); if (restart) { if (option_verbose || option_console) |