Call setsid() when establishing new controlling terminal.
authorStu Grossman <grossman@cygnus>
Tue, 23 Jun 1992 06:21:14 +0000 (06:21 +0000)
committerStu Grossman <grossman@cygnus>
Tue, 23 Jun 1992 06:21:14 +0000 (06:21 +0000)
gdb/cadillac.c

index c8665e82f5fbd51d074bc1e4411766b4b8891d70..9bf824f2b7dfe9901d78014f7691587cbda65c11 100755 (executable)
@@ -1348,6 +1348,7 @@ cadillac_initialize(cadillac_id, execarg)
   /* Tell the rest of the world that Cadillac is now set up. */
   cadillac = 1;
 
+  setsid();                    /* Drop controlling tty, become pgrp master */
   getpty();                    /* Setup the pty */
   dup2(inferior_tty, 0);       /* Attach all GDB I/O to the pty */
   dup2(inferior_tty, 1);