diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-04-01 03:13:38 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-04-01 03:13:38 +0000 |
commit | 58a1d371c0f4c9b5731875425f91d29977803f82 (patch) | |
tree | 97781d967e3388ce974577529075d93659e5c088 /file.c | |
parent | 80acfaf7b854f65551266eb15bcd1086f6073c1d (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-x | file.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) { |