aboutsummaryrefslogtreecommitdiffstats
path: root/main/editline
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-12-12 22:03:10 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-12-12 22:03:10 +0000
commitfa256972fbe5f5efbeb59468ac84f311b97a4cb1 (patch)
tree1deab344d862b70d1b55fb5e96abe70fc9923d37 /main/editline
parent38acbe34c17126b5f3185c689b0f83f58298b5f1 (diff)
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.4@163761 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/editline')
-rw-r--r--main/editline/read.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main/editline/read.c b/main/editline/read.c
index ccd0a06e5..80d51da4a 100644
--- a/main/editline/read.c
+++ b/main/editline/read.c
@@ -286,6 +286,8 @@ read_getcmd(EditLine *el, el_action_t *cmdnum, char *ch)
/* read_char():
* Read a character from the tty.
+ * XXX This routine is the default, but what you are actually looking for
+ * is in main/asterisk.c, in ast_el_read_char(). XXX
*/
private int
read_char(EditLine *el, char *cp)
@@ -344,6 +346,7 @@ el_getc(EditLine *el, char *cp)
#ifdef DEBUG_READ
(void) fprintf(el->el_errfile, "Reading a character\n");
#endif /* DEBUG_READ */
+ /* See main/asterisk.c: ast_el_read_char() */
num_read = (*el->el_read.read_char)(el, cp);
#ifdef DEBUG_READ
(void) fprintf(el->el_errfile, "Got it %c\n", *cp);