mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-17 05:36:12 +08:00
* 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.
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user