diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-09-12 15:12:52 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-09-12 15:12:52 +0000 |
commit | 4040ddc40fe8d545344de77d26d7a65c454412a7 (patch) | |
tree | cbed99547449857b4b70166730295bfddb732f8b /res | |
parent | 6557e1472bcb12c884fd6f81a0c7d94558c1d2d9 (diff) |
Merged revisions 82278 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r82278 | russell | 2007-09-12 10:11:11 -0500 (Wed, 12 Sep 2007) | 3 lines
revert patch from issue #10553, as someone not using fastagi reported that this
broke their system.
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@82279 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r-- | res/res_agi.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/res/res_agi.c b/res/res_agi.c index d8bca507c..01d3d6ac1 100644 --- a/res/res_agi.c +++ b/res/res_agi.c @@ -1905,25 +1905,10 @@ static enum agi_result run_agi(struct ast_channel *chan, char *request, AGI *agi ast_frfree(f); } } else if (outfd > -1) { - size_t len = sizeof(buf); - size_t buflen = 0; - retry = AGI_NANDFS_RETRY; buf[0] = '\0'; - while (buflen < (len - 1)) { - fgets(buf + buflen, len, readf); - if (feof(readf)) - break; - if (ferror(readf) && ((errno != EINTR) && (errno != EAGAIN))) - break; - buflen = strlen(buf); - len -= buflen; - if (agidebug) - ast_verbose( "AGI Rx << temp buffer %s - errno %s\n", buf, strerror(errno)); - } - - if (!buf[0]) { + if (!fgets(buf, sizeof(buf), readf)) { /* Program terminated */ if (returnstatus && returnstatus != AST_PBX_KEEPALIVE) returnstatus = -1; |