Mail Archives: cygwin-developers/1998/08/21/04:29:18
Hi!
Tue Jul 21 09:32:23 1998 Christopher Faylor <cgf AT cygnus DOT com>
* pinfo.cc (pinfo_init): 0 is a very bad value for a default pgid.
Chris, why did you make that change? Now command like "cat filename | less"
hangs when started from OS prompt and tty support is enabled. The hang is
because of lines in fhandler_tty_slave::read():
if (myself->pgid && ttyp->getpgid () != myself->pgid &&
myself->ctty == ttynum) // background process
{
termios_printf("bg read pgid=%d tpgid=%d ctty=%d\n",
myself->pgid, ttyp->getpgid (), myself->ctty);
..................
_raise (SIGTTIN);
}
myself->pgid was non zero before only if job control was in effect, but is
always non-zero now!
--
Sergey Okhapkin, http://www.lexa.ru/sos
Moscow, Russia
- Raw text -