aboutsummaryrefslogtreecommitdiff
path: root/readline/examples/rlptytest.c
diff options
context:
space:
mode:
Diffstat (limited to 'readline/examples/rlptytest.c')
-rw-r--r--readline/examples/rlptytest.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/readline/examples/rlptytest.c b/readline/examples/rlptytest.c
index 79257db..0699e86 100644
--- a/readline/examples/rlptytest.c
+++ b/readline/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);