aboutsummaryrefslogtreecommitdiffstats
path: root/channel.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-03-22 22:44:55 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-03-22 22:44:55 +0000
commit047f2b08f24d5ae77cd26ff9bed12815d27da576 (patch)
tree460939518a9ab7da4816e8173c33a2c8cf1d67e7 /channel.c
parent2de2aef34b4bf485856d65300000d4175b571deb (diff)
Make sure that waitfordigit_full doesn't hangup on -EINTR (bug #3831)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5232 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channel.c')
-rwxr-xr-xchannel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/channel.c b/channel.c
index 6dd822006..74862e6cd 100755
--- a/channel.c
+++ b/channel.c
@@ -1173,6 +1173,8 @@ char ast_waitfordigit_full(struct ast_channel *c, int ms, int audiofd, int cmdfd
while(ms) {
rchan = ast_waitfor_nandfds(&c, 1, &cmdfd, (cmdfd > -1) ? 1 : 0, NULL, &outfd, &ms);
if ((!rchan) && (outfd < 0) && (ms)) {
+ if (errno == EINTR)
+ continue;
ast_log(LOG_WARNING, "Wait failed (%s)\n", strerror(errno));
return -1;
} else if (outfd > -1) {