* inflow.c (O_NOCTTY): Define to zero if not already defined.
authorMark Kettenis <kettenis@gnu.org>
Wed, 11 Aug 2004 09:00:57 +0000 (09:00 +0000)
committerMark Kettenis <kettenis@gnu.org>
Wed, 11 Aug 2004 09:00:57 +0000 (09:00 +0000)
(new_tty): Use O_NOCTTY unconditionally.

gdb/ChangeLog
gdb/inflow.c

index 794c78f15ce4c459192a3fa0f0d685070307a25a..45abe47e3a2dbce38ccac5715eb52c3c961560cb 100644 (file)
@@ -1,3 +1,8 @@
+2004-08-11  Mark Kettenis  <kettenis@gnu.org>
+
+       * inflow.c (O_NOCTTY): Define to zero if not already defined.
+       (new_tty): Use O_NOCTTY unconditionally.
+
 2004-08-10  Mark Kettenis  <kettenis@gnu.org>
 
        * procfs.c (procfs_detach): Cleanup.  Print process ID, not LWP
index 9c9a59351acb364be993ba8a3a053af73927f23d..eb5c89bda577ebd35f58d56df06ead5a35e2ef5a 100644 (file)
 #include <sys/ioctl.h>
 #endif
 
+#ifndef O_NOCTTY
+#define O_NOCTTY 0
+#endif
+
 #if defined (SIGIO) && defined (FASYNC) && defined (FD_SET) && defined (F_SETOWN)
 static void handle_sigio (int);
 #endif
@@ -537,12 +541,7 @@ new_tty (void)
 #endif
 
   /* Now open the specified new terminal.  */
-
-#ifdef USE_O_NOCTTY
   tty = open (inferior_thisrun_terminal, O_RDWR | O_NOCTTY);
-#else
-  tty = open (inferior_thisrun_terminal, O_RDWR);
-#endif
   if (tty == -1)
     {
       print_sys_errmsg (inferior_thisrun_terminal, errno);
This page took 0.050009 seconds and 4 git commands to generate.