diff options
Diffstat (limited to 'readline/examples/rlptytest.c')
-rw-r--r-- | readline/examples/rlptytest.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/readline/examples/rlptytest.c b/readline/examples/rlptytest.c index 0699e86..79257db 100644 --- a/readline/examples/rlptytest.c +++ b/readline/examples/rlptytest.c @@ -19,7 +19,7 @@ #include <signal.h> -#if 1 /* LINUX */ +#if 0 /* LINUX */ #include <pty.h> #else #include <util.h> @@ -316,8 +316,6 @@ main() if (val == -1) return -1; - signal (SIGINT, sigint); - val = init_readline (slavefd, slavefd); if (val == -1) return -1; @@ -326,6 +324,8 @@ main() if (val == -1) return -1; + signal (SIGINT, sigint); + val = main_loop (); tty_reset (STDIN_FILENO); |