aboutsummaryrefslogtreecommitdiff
path: root/gdb/terminal.h
diff options
context:
space:
mode:
authorThiago Jung Bauermann <bauerman@br.ibm.com>2008-03-12 14:10:56 +0000
committerThiago Jung Bauermann <bauerman@br.ibm.com>2008-03-12 14:10:56 +0000
commit83116857a35fc5125d098984fae29a549a2b29f3 (patch)
tree345c301a7e13d9bdb1cbd65fb38a0fbe0bf92e26 /gdb/terminal.h
parent2774f1a679efef2fc5f9f9a445f7c1e904a13225 (diff)
downloadgdb-83116857a35fc5125d098984fae29a549a2b29f3.zip
gdb-83116857a35fc5125d098984fae29a549a2b29f3.tar.gz
gdb-83116857a35fc5125d098984fae29a549a2b29f3.tar.bz2
* 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.
Diffstat (limited to 'gdb/terminal.h')
-rw-r--r--gdb/terminal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/terminal.h b/gdb/terminal.h
index 911a23a..743be6c 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);