From 4edaf074ad82f1822b4a5b5bdec9ff3874e40fff Mon Sep 17 00:00:00 2001 From: Stu Grossman Date: Tue, 23 Jun 1992 06:21:14 +0000 Subject: [PATCH] Call setsid() when establishing new controlling terminal. --- gdb/cadillac.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gdb/cadillac.c b/gdb/cadillac.c index c8665e82f5f..9bf824f2b7d 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); -- 2.30.2