From 7706616f202b6c0adde4cd05e79f52d1e5f69a1c Mon Sep 17 00:00:00 2001 From: Jim Kingdon <jkingdon@engr.sgi.com> Date: Tue, 27 Jul 1993 22:37:51 +0000 Subject: * config/sparc/xm-sun4os4.h: Define MEM_FNS_DECLARED and include <memory.h>. Include <malloc.h> rather than declaring malloc functions ourself. * ser-unix.c (set_tty_state): Don't ignore errors setting process group. * inflow.c (terminal_inferior): If attach_flag set, ignore errors from set_tty_state. --- gdb/ser-unix.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'gdb/ser-unix.c') diff --git a/gdb/ser-unix.c b/gdb/ser-unix.c index b147c73..5f07ade 100644 --- a/gdb/ser-unix.c +++ b/gdb/ser-unix.c @@ -159,9 +159,7 @@ set_tty_state(scb, state) if (!job_control) return 0; - /* Need to ignore errors, at least if attach_flag is set. */ - tcsetpgrp (scb->fd, state->process_group); - return 0; + return tcsetpgrp (scb->fd, state->process_group); #endif #ifdef HAVE_TERMIO @@ -177,9 +175,7 @@ set_tty_state(scb, state) if (!job_control) return 0; - /* Need to ignore errors, at least if attach_flag is set. */ - ioctl (scb->fd, TIOCSPGRP, &state->process_group); - return 0; + return ioctl (scb->fd, TIOCSPGRP, &state->process_group); #endif } -- cgit v1.1