aboutsummaryrefslogtreecommitdiff
path: root/gdb/cadillac.c
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1992-06-23 06:21:14 +0000
committerStu Grossman <grossman@cygnus>1992-06-23 06:21:14 +0000
commit4edaf074ad82f1822b4a5b5bdec9ff3874e40fff (patch)
tree556480908efc7c0a1aba8e5dc6fa794b430b36b0 /gdb/cadillac.c
parent11be3463ff349904cf49a241666265c30364eeaf (diff)
downloadgdb-4edaf074ad82f1822b4a5b5bdec9ff3874e40fff.zip
gdb-4edaf074ad82f1822b4a5b5bdec9ff3874e40fff.tar.gz
gdb-4edaf074ad82f1822b4a5b5bdec9ff3874e40fff.tar.bz2
Call setsid() when establishing new controlling terminal.
Diffstat (limited to 'gdb/cadillac.c')
-rwxr-xr-xgdb/cadillac.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/cadillac.c b/gdb/cadillac.c
index c8665e8..9bf824f 100755
--- a/gdb/cadillac.c
+++ b/gdb/cadillac.c
@@ -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);