From 8da5a53dcaf1316a1d984f3daeaa74619c964798 Mon Sep 17 00:00:00 2001 From: Thiago Jung Bauermann Date: Wed, 12 Mar 2008 14:10:56 +0000 Subject: * configure.ac (AC_CHECK_FUNCS): Add check for setsid. * config.in, configure: Regenerate. * fork-child.c (fork_inferior): Call create_tty_session. * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY. (create_tty_session): New function. * terminal.h: Declare create_tty_session. --- gdb/terminal.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gdb/terminal.h') diff --git a/gdb/terminal.h b/gdb/terminal.h index 911a23a355a..743be6c1dc0 100644 --- a/gdb/terminal.h +++ b/gdb/terminal.h @@ -82,6 +82,8 @@ extern void new_tty (void); a given run of GDB. In inflow.c. */ extern int job_control; +extern int create_tty_session (void); + /* Set the process group of the caller to its own pid, or do nothing if we lack job control. */ extern int gdb_setpgid (void); -- cgit v1.2.1