Skip to content
Snippets Groups Projects
Commit e93e62e2 authored by Mark Spencer's avatar Mark Spencer
Browse files

Ignore interrupted system calls (bug #3831)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5231 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 6265cd31
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment