aboutsummaryrefslogtreecommitdiff
path: root/gdb/inflow.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-10-13 18:29:09 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-10-13 18:29:09 +0000
commit76e473bbdd4b38ab257b792ef0546bc06a22cff7 (patch)
tree0b89d9e77fa3e5575db9041aac86b58dcea50f83 /gdb/inflow.c
parent9309b4d9291f1a40de779dbaf003b4e921e87c9e (diff)
downloadgdb-76e473bbdd4b38ab257b792ef0546bc06a22cff7.zip
gdb-76e473bbdd4b38ab257b792ef0546bc06a22cff7.tar.gz
gdb-76e473bbdd4b38ab257b792ef0546bc06a22cff7.tar.bz2
* inflow.c (terminal_ours_1): Don't print warning on failure to
set process group.
Diffstat (limited to 'gdb/inflow.c')
-rw-r--r--gdb/inflow.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/gdb/inflow.c b/gdb/inflow.c
index 772425f..dd55a02 100644
--- a/gdb/inflow.c
+++ b/gdb/inflow.c
@@ -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
}