diff options
author | Mark Spencer <markster@digium.com> | 2005-03-22 20:34:04 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2005-03-22 20:34:04 +0000 |
commit | e93e62e29ba18e4c8b2dfc5b5ae22c721a52d9f0 (patch) | |
tree | 87e023e2472e1e50fef8dd556bc3313305506eda /file.c | |
parent | 6265cd3125a47c5929801ad82cdf188bcf50323e (diff) |
Ignore interrupted system calls (bug #3831)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5231 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'file.c')
-rwxr-xr-x | file.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) { |