[Asterisk-cvs] asterisk asterisk.c,1.181,1.182

markster markster
Sun Sep 25 12:55:05 CDT 2005


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv13211

Modified Files:
	asterisk.c 
Log Message:
Fix restart in Mac OSX (bug #5251)


Index: asterisk.c
===================================================================
RCS file: /usr/cvsroot/asterisk/asterisk.c,v
retrieving revision 1.181
retrieving revision 1.182
diff -u -d -r1.181 -r1.182
--- asterisk.c	14 Sep 2005 22:40:54 -0000	1.181
+++ asterisk.c	25 Sep 2005 16:52:04 -0000	1.182
@@ -856,7 +856,7 @@
 
 		/* 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);




More information about the svn-commits mailing list