mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-31 10:09:16 +08:00
* inflow.c (terminal_ours_1): Don't print warning on failure to
set process group.
This commit is contained in:
@ -325,16 +325,19 @@ terminal_ours_1 (output_only)
|
||||
{
|
||||
#ifdef HAVE_TERMIOS
|
||||
result = tcsetpgrp (0, our_process_group);
|
||||
#if 0
|
||||
/* This fails on Ultrix with EINVAL if you run the testsuite
|
||||
in the background with nohup, and then log out. GDB never
|
||||
used to check for an error here, so perhaps there are other
|
||||
such situations as well. */
|
||||
if (result == -1)
|
||||
fprintf (stderr, "[tcsetpgrp failed in terminal_ours: %s]\n",
|
||||
strerror (errno));
|
||||
#endif
|
||||
#endif /* termios */
|
||||
|
||||
#ifdef HAVE_SGTTY
|
||||
result = ioctl (0, TIOCSPGRP, our_process_group);
|
||||
if (result == -1)
|
||||
fprintf (stderr, "[TIOCSPGRP failed in terminal_ours: %s]\n",
|
||||
strerror (errno));
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user