[asterisk-commits] markster: branch 1.4 r46142 -
/branches/1.4/res/res_agi.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Tue Oct 24 13:30:26 MST 2006
Author: markster
Date: Tue Oct 24 15:30:25 2006
New Revision: 46142
URL: http://svn.digium.com/view/asterisk?rev=46142&view=rev
Log:
Fix FastAGI when there is no pid (bug #7628, #8147)
Modified:
branches/1.4/res/res_agi.c
Modified: branches/1.4/res/res_agi.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/res/res_agi.c?rev=46142&r1=46141&r2=46142&view=diff
==============================================================================
--- branches/1.4/res/res_agi.c (original)
+++ branches/1.4/res/res_agi.c Tue Oct 24 15:30:25 2006
@@ -1868,7 +1868,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 asterisk-commits
mailing list