aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-03-22 20:34:04 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-03-22 20:34:04 +0000
commit2de2aef34b4bf485856d65300000d4175b571deb (patch)
tree87e023e2472e1e50fef8dd556bc3313305506eda /file.c
parent86bf8031156ee07cc3638c6639f8ea2c3df39a67 (diff)
Ignore interrupted system calls (bug #3831)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5231 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'file.c')
-rwxr-xr-xfile.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/file.c b/file.c
index 85e66a781..b2e370cc4 100755
--- a/file.c
+++ b/file.c
@@ -1081,6 +1081,9 @@ char ast_waitstream_full(struct ast_channel *c, const char *breakon, int audiofd
ms = 1000;
rchan = ast_waitfor_nandfds(&c, 1, &cmdfd, (cmdfd > -1) ? 1 : 0, NULL, &outfd, &ms);
if (!rchan && (outfd < 0) && (ms)) {
+ /* Continue */
+ if (errno == EINTR)
+ continue;
ast_log(LOG_WARNING, "Wait failed (%s)\n", strerror(errno));
return -1;
} else if (outfd > -1) {