summaryrefslogtreecommitdiff
path: root/asterisk.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2005-09-25 16:52:04 +0000
committerMark Spencer <markster@digium.com>2005-09-25 16:52:04 +0000
commitfcc0b23e180802ddb8f704d1165d27d84718b345 (patch)
tree3d944aa34c71d15bf8b16aacf1fe4486090ccb91 /asterisk.c
parent446d1eee3e6090409109075ea41b5784b23801c9 (diff)
Fix restart in Mac OSX (bug #5251)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6643 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'asterisk.c')
-rwxr-xr-xasterisk.c2
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);