mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Merged revisions 163761 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r163761 | tilghman | 2008-12-12 16:03:10 -0600 (Fri, 12 Dec 2008) | 7 lines Simple fix for Ctrl-C not immediately exiting Asterisk, but also add a pointer inside editline to look back to asterisk.c, so others don't spend as much time as I did looking (in the wrong place) for the appropriate function. Reported by: ZX81, via the #asterisk-users channel Fixed by: me (license 14) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@163762 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1943,6 +1943,8 @@ static int ast_el_read_char(EditLine *editline, char *cp)
|
||||
}
|
||||
res = poll(fds, max, -1);
|
||||
if (res < 0) {
|
||||
if (sig_flags.need_quit)
|
||||
break;
|
||||
if (errno == EINTR)
|
||||
continue;
|
||||
ast_log(LOG_ERROR, "poll failed: %s\n", strerror(errno));
|
||||
|
Reference in New Issue
Block a user