Skip to content
Snippets Groups Projects
Commit fcc0b23e authored by Mark Spencer's avatar Mark Spencer
Browse files

Fix restart in Mac OSX (bug #5251)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6643 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 446d1eee
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment