delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/08/21/04:29:18

From: sos AT prospect DOT com DOT ru (Sergey Okhapkin)
Subject: tty hangs
21 Aug 1998 04:29:18 -0700 :
Message-ID: <01BDCD14.B3ECC300.cygnus.cygwin32.developers@sos>
To: "'cygwin32-developers AT cygnus DOT com'" <cygwin32-developers AT cygnus DOT com>

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019