From 179cd9230f33cf120cde7ada645aa363b5101cee Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Thu, 14 Oct 1993 02:48:33 +0000 Subject: [PATCH] * inflow.c: Pass pointer to process group, not process group itself, to TIOCSPGRP ioctl. --- gdb/ChangeLog | 3 +++ gdb/inflow.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2fab6c8706f..785cb015dcf 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ Wed Oct 13 11:47:23 1993 Jim Kingdon (kingdon@lioth.cygnus.com) + * inflow.c: Pass pointer to process group, not process group itself, + to TIOCSPGRP ioctl. + * inflow.c (terminal_ours_1): Don't print warning on failure to set process group. diff --git a/gdb/inflow.c b/gdb/inflow.c index dd55a020c08..bf795410861 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 } -- 2.30.2