summaryrefslogtreecommitdiff
path: root/examples/rlptytest.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/rlptytest.c')
-rw-r--r--examples/rlptytest.c6
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);