* inflow.c (terminal_ours_1): Don't print warning on failure to

set process group.
This commit is contained in:
Jim Kingdon 1993-10-13 18:29:09 +00:00
parent 9309b4d929
commit 76e473bbdd
2 changed files with 9 additions and 3 deletions

View File

@ -1,5 +1,8 @@
Wed Oct 13 11:47:23 1993 Jim Kingdon (kingdon@lioth.cygnus.com) Wed Oct 13 11:47:23 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
* inflow.c (terminal_ours_1): Don't print warning on failure to
set process group.
* printcmd.c (printf_command): Instead of using makeva* and * printcmd.c (printf_command): Instead of using makeva* and
calling vprintf, just make the appropriate calls to printf. calling vprintf, just make the appropriate calls to printf.
* printcmd.c, config/pa/xm-pa.h, config/mips/xm-makeva.h, * printcmd.c, config/pa/xm-pa.h, config/mips/xm-makeva.h,

View File

@ -325,16 +325,19 @@ terminal_ours_1 (output_only)
{ {
#ifdef HAVE_TERMIOS #ifdef HAVE_TERMIOS
result = tcsetpgrp (0, our_process_group); 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) if (result == -1)
fprintf (stderr, "[tcsetpgrp failed in terminal_ours: %s]\n", fprintf (stderr, "[tcsetpgrp failed in terminal_ours: %s]\n",
strerror (errno)); strerror (errno));
#endif #endif
#endif /* termios */
#ifdef HAVE_SGTTY #ifdef HAVE_SGTTY
result = ioctl (0, TIOCSPGRP, our_process_group); result = ioctl (0, TIOCSPGRP, our_process_group);
if (result == -1)
fprintf (stderr, "[TIOCSPGRP failed in terminal_ours: %s]\n",
strerror (errno));
#endif #endif
} }