aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_agi.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-09-12 15:11:11 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-09-12 15:11:11 +0000
commitb25ab1c0d4ce086468fee442662458889c323768 (patch)
treeab9b6715d8c7927d282955be70bb38e8c69e2162 /res/res_agi.c
parente550cd9e453dff3b2ac5ea001a1d8c29ee0cd69c (diff)
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/branches/1.4@82278 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_agi.c')
-rw-r--r--res/res_agi.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/res/res_agi.c b/res/res_agi.c
index cae43e667..77472b011 100644
--- a/res/res_agi.c
+++ b/res/res_agi.c
@@ -1867,25 +1867,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 = -1;