diff options
author | Mark Spencer <markster@digium.com> | 2005-03-22 22:44:55 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2005-03-22 22:44:55 +0000 |
commit | ff47b7ec31ca1066b74cbca17c9d27959d2c4db2 (patch) | |
tree | 460939518a9ab7da4816e8173c33a2c8cf1d67e7 /channel.c | |
parent | e93e62e29ba18e4c8b2dfc5b5ae22c721a52d9f0 (diff) |
Make sure that waitfordigit_full doesn't hangup on -EINTR (bug #3831)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5232 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channel.c')
-rwxr-xr-x | channel.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) { |