diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-08-23 15:49:28 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-08-23 15:49:28 +0000 |
commit | 29b6e688cf787390d9ff0cea3da4e478e0497ee9 (patch) | |
tree | 94c65a46f0b470ca85ca8a05ea2922e40cda6ff2 | |
parent | a7b9004488d3cd71546ac295b2c145c70a728a07 (diff) |
Revert res_agi fix that didn't quite work until we get it right ...
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@80469 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | res/res_agi.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/res/res_agi.c b/res/res_agi.c index d0ae40817..c442768aa 100644 --- a/res/res_agi.c +++ b/res/res_agi.c @@ -1866,14 +1866,9 @@ static enum agi_result run_agi(struct ast_channel *chan, char *request, AGI *agi ast_frfree(f); } } else if (outfd > -1) { - size_t len; retry = RETRY; buf[0] = '\0'; -retry_fgets: - len = strlen(buf); - if (!fgets(buf + len, sizeof(buf) - len, readf)) { - if (!feof(readf) && (errno == EINTR || errno == EAGAIN)) - goto retry_fgets; + if (!fgets(buf, sizeof(buf), readf)) { /* Program terminated */ if (returnstatus) returnstatus = -1; @@ -1885,8 +1880,6 @@ retry_fgets: pid = -1; break; } - if (errno == EINTR || errno == EAGAIN) - goto retry_fgets; /* get rid of trailing newline, if any */ if (*buf && buf[strlen(buf) - 1] == '\n') buf[strlen(buf) - 1] = 0; |