Revert "Sync readline/ to version 7.0 alpha"
[deliverable/binutils-gdb.git] / readline / examples / rlptytest.c
index 0699e86153bf3923eb46976f4740349cdff30219..79257db4005f9b477d15a9216783960931615f65 100644 (file)
@@ -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);
This page took 0.024116 seconds and 4 git commands to generate.