[svn-commits] markster: trunk r46141 - /trunk/res/res_agi.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Tue Oct 24 13:22:30 MST 2006


Author: markster
Date: Tue Oct 24 15:22:29 2006
New Revision: 46141

URL: http://svn.digium.com/view/asterisk?rev=46141&view=rev
Log:
Fix FastAGI to not wait for the non-existant pid

Modified:
    trunk/res/res_agi.c

Modified: trunk/res/res_agi.c
URL: http://svn.digium.com/view/asterisk/trunk/res/res_agi.c?rev=46141&r1=46140&r2=46141&view=diff
==============================================================================
--- trunk/res/res_agi.c (original)
+++ trunk/res/res_agi.c Tue Oct 24 15:22:29 2006
@@ -1869,7 +1869,8 @@
 					returnstatus = -1;
 				if (option_verbose > 2) 
 					ast_verbose(VERBOSE_PREFIX_3 "AGI Script %s completed, returning %d\n", request, returnstatus);
-				waitpid(pid, status, 0);
+				if (pid > 0)
+					waitpid(pid, status, 0);
 				/* No need to kill the pid anymore, since they closed us */
 				pid = -1;
 				break;



More information about the svn-commits mailing list