aboutsummaryrefslogtreecommitdiff
path: root/gdb/ser-unix.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-07-27 22:37:51 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-07-27 22:37:51 +0000
commit7706616f202b6c0adde4cd05e79f52d1e5f69a1c (patch)
treefe1723fe36f2c41eb76620201399eaa75034ef88 /gdb/ser-unix.c
parent0c2734c384a8d4b36cf87f213878147a6941b824 (diff)
downloadgdb-7706616f202b6c0adde4cd05e79f52d1e5f69a1c.zip
gdb-7706616f202b6c0adde4cd05e79f52d1e5f69a1c.tar.gz
gdb-7706616f202b6c0adde4cd05e79f52d1e5f69a1c.tar.bz2
* 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.
Diffstat (limited to 'gdb/ser-unix.c')
-rw-r--r--gdb/ser-unix.c8
1 files changed, 2 insertions, 6 deletions
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
}