diff options
author | Chet Ramey <chet.ramey@case.edu> | 2014-02-26 10:31:21 -0500 |
---|---|---|
committer | Chet Ramey <chet.ramey@case.edu> | 2014-02-26 10:31:21 -0500 |
commit | 7628b745a813aac53586b640da056a975f1c443e (patch) | |
tree | f27689da65e9873cd0a77f64f334814989ef5478 /examples/rlptytest.c | |
parent | 3fede80c7ae9d396a98137ec8e7188a27c327e96 (diff) | |
download | readline-7628b745a813aac53586b640da056a975f1c443e.tar.gz |
Readline-6.3 distribution sources and documentationreadline-6.3
Diffstat (limited to 'examples/rlptytest.c')
-rw-r--r-- | examples/rlptytest.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/rlptytest.c b/examples/rlptytest.c index 79257db..0699e86 100644 --- a/examples/rlptytest.c +++ b/examples/rlptytest.c @@ -19,7 +19,7 @@ #include <signal.h> -#if 0 /* LINUX */ +#if 1 /* LINUX */ #include <pty.h> #else #include <util.h> @@ -316,6 +316,8 @@ main() if (val == -1) return -1; + signal (SIGINT, sigint); + val = init_readline (slavefd, slavefd); if (val == -1) return -1; @@ -324,8 +326,6 @@ main() if (val == -1) return -1; - signal (SIGINT, sigint); - val = main_loop (); tty_reset (STDIN_FILENO); |