diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-09-25 16:52:04 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-09-25 16:52:04 +0000 |
commit | db4f0e234eef678459207170e407d3dee45f27ea (patch) | |
tree | 3d944aa34c71d15bf8b16aacf1fe4486090ccb91 | |
parent | 5d083c4a80910d6900cd54942456d12296dbea04 (diff) |
Fix restart in Mac OSX (bug #5251)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6643 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-x | asterisk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/asterisk.c b/asterisk.c index 7c74e67f1..2aa7c0c52 100755 --- a/asterisk.c +++ b/asterisk.c @@ -856,7 +856,7 @@ static void quit_handler(int num, int nice, int safeshutdown, int restart) /* 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) { + if ((consolethread != AST_PTHREADT_NULL) && (consolethread != pthread_self())) { pthread_kill(consolethread, SIGHUP); /* Give the signal handler some time to complete */ sleep(2); |