projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
446d1ee
)
Fix restart in Mac OSX (bug #5251)
author
Mark Spencer
<markster@digium.com>
Sun, 25 Sep 2005 16:52:04 +0000
(16:52 +0000)
committer
Mark Spencer
<markster@digium.com>
Sun, 25 Sep 2005 16:52:04 +0000
(16:52 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6643
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
asterisk.c
patch
|
blob
|
history
diff --git
a/asterisk.c
b/asterisk.c
index
7c74e67
..
2aa7c0c
100755
(executable)
--- 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);