Call setsid() when establishing new controlling terminal.

This commit is contained in:
Stu Grossman 1992-06-23 06:21:14 +00:00
parent 11be3463ff
commit 4edaf074ad
1 changed files with 1 additions and 0 deletions

View File

@ -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);