Fix FastAGI when there is no pid (bug #7628, #8147)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@46142 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.4
Mark Spencer 19 years ago
parent c6b9449955
commit 72a23ce184

@ -1868,6 +1868,7 @@ static enum agi_result run_agi(struct ast_channel *chan, char *request, AGI *agi
returnstatus = -1; returnstatus = -1;
if (option_verbose > 2) if (option_verbose > 2)
ast_verbose(VERBOSE_PREFIX_3 "AGI Script %s completed, returning %d\n", request, returnstatus); ast_verbose(VERBOSE_PREFIX_3 "AGI Script %s completed, returning %d\n", request, returnstatus);
if (pid > 0)
waitpid(pid, status, 0); waitpid(pid, status, 0);
/* No need to kill the pid anymore, since they closed us */ /* No need to kill the pid anymore, since they closed us */
pid = -1; pid = -1;

Loading…
Cancel
Save