aboutsummaryrefslogtreecommitdiff
path: root/gdb/inflow.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-10-14 02:48:33 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-10-14 02:48:33 +0000
commit179cd9230f33cf120cde7ada645aa363b5101cee (patch)
treee7a220e1913d63c515c91108d4531dcadfeda46e /gdb/inflow.c
parent8bd3f87684e8981ec851760f7946f656cb034b0b (diff)
downloadgdb-179cd9230f33cf120cde7ada645aa363b5101cee.zip
gdb-179cd9230f33cf120cde7ada645aa363b5101cee.tar.gz
gdb-179cd9230f33cf120cde7ada645aa363b5101cee.tar.bz2
* inflow.c: Pass pointer to process group, not process group itself,
to TIOCSPGRP ioctl.
Diffstat (limited to 'gdb/inflow.c')
-rw-r--r--gdb/inflow.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/inflow.c b/gdb/inflow.c
index dd55a02..bf79541 100644
--- a/gdb/inflow.c
+++ b/gdb/inflow.c
@@ -235,7 +235,7 @@ terminal_inferior ()
#endif
#ifdef HAVE_SGTTY
- result = ioctl (0, TIOCSPGRP, inferior_process_group);
+ result = ioctl (0, TIOCSPGRP, &inferior_process_group);
if (!attach_flag)
OOPSY ("TIOCSPGRP");
#endif
@@ -337,7 +337,7 @@ terminal_ours_1 (output_only)
#endif /* termios */
#ifdef HAVE_SGTTY
- result = ioctl (0, TIOCSPGRP, our_process_group);
+ result = ioctl (0, TIOCSPGRP, &our_process_group);
#endif
}