aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-04-01 03:13:38 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-04-01 03:13:38 +0000
commit58a1d371c0f4c9b5731875425f91d29977803f82 (patch)
tree97781d967e3388ce974577529075d93659e5c088 /file.c
parent80acfaf7b854f65551266eb15bcd1086f6073c1d (diff)
ignore interrupted system calls (bug #3831)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/v1-0@5328 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 a1a563c7a..a91edc2c6 100755
--- a/file.c
+++ b/file.c
@@ -1070,6 +1070,9 @@ char ast_waitstream_full(struct ast_channel *c, char *breakon, int audiofd, int
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) {