aboutsummaryrefslogtreecommitdiffstats
path: root/main/asterisk.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-12-12 22:05:16 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-12-12 22:05:16 +0000
commit15da66e40e2068128f827fc7fcfe8ea544a663bf (patch)
tree0981f37791b1f99d18291acd0c72844ccab041d9 /main/asterisk.c
parent8f8dea1657a97c0b8d84caa01b1f10ab2b1e501b (diff)
Merged revisions 163762 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ................ r163762 | tilghman | 2008-12-12 16:04:26 -0600 (Fri, 12 Dec 2008) | 14 lines 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: http://svn.digium.com/svn/asterisk/branches/1.6.0@163763 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/asterisk.c')
-rw-r--r--main/asterisk.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/asterisk.c b/main/asterisk.c
index 03c6b18ab..d1b37b575 100644
--- a/main/asterisk.c
+++ b/main/asterisk.c
@@ -1912,6 +1912,8 @@ static int ast_el_read_char(EditLine *el, 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));