aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbtk.c
diff options
context:
space:
mode:
authorMichael Meissner <gnu@the-meissners.org>1995-04-06 21:08:05 +0000
committerMichael Meissner <gnu@the-meissners.org>1995-04-06 21:08:05 +0000
commit77a8995732352e5c16d0a2b9da61e8e4f448537c (patch)
treeb857c1c56f217f2e9a91d083d88650270401a3eb /gdb/gdbtk.c
parent84ccb887528da1a73efbfbaf81646f97292322b7 (diff)
downloadgdb-77a8995732352e5c16d0a2b9da61e8e4f448537c.zip
gdb-77a8995732352e5c16d0a2b9da61e8e4f448537c.tar.gz
gdb-77a8995732352e5c16d0a2b9da61e8e4f448537c.tar.bz2
Initial Linux ELF support.
Diffstat (limited to 'gdb/gdbtk.c')
-rw-r--r--gdb/gdbtk.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/gdbtk.c b/gdb/gdbtk.c
index fd4aeed..f3d8204 100644
--- a/gdb/gdbtk.c
+++ b/gdb/gdbtk.c
@@ -1117,9 +1117,11 @@ gdbtk_init ()
if (ioctl (x_fd, FIOASYNC, &i))
perror_with_name ("gdbtk_init: ioctl FIOASYNC failed");
+#ifdef SIOCSPGRP
i = getpid();
if (ioctl (x_fd, SIOCSPGRP, &i))
perror_with_name ("gdbtk_init: ioctl SIOCSPGRP failed");
+#endif
#else
if (ioctl (x_fd, I_SETSIG, S_INPUT|S_RDNORM) < 0)
perror_with_name ("gdbtk_init: ioctl I_SETSIG failed");