delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/02/19/22:00:19

From: cgf AT bbc DOT com (Christopher Faylor)
Subject: Occasional hang with CYGWIN32=tty?
19 Feb 1998 22:00:19 -0800 :
Message-ID: <Eonu1x.BL1.cygnus.cygwin32.developers@bbc.com>
Reply-To: cgf AT bbc DOT com
To: cygwin32-developers AT cygnus DOT com

I run with CYGWIN32=tty set and lately (the last several days) I have
been noticing that when I exit 'zsh' it will occasionally hang in a
manner that is symptomatic of the tty handler thinking that there are
still open fd's on the tty.  There is code that is called by do_exit
which closes down the tty thread if it was created in this process but
this the function will block waiting for the tty use count to == 0.  I
think that something is incrementing the tty use count and not
subsequently decrementing it.

I think I have only noticed this since Ian's last round of tty changes.
Has anyone else noticed this?  Unfortunately, I can't reliably reproduce
this symptom.  Today it happened after I entered zsh, did a 'vi', a
'make' (which produced an error), another 'vi', and a 'logout'.

If I do a 'ps' the zsh process does not show up in the process table.
'ps -f' does display it.
-- 
http://www.bbc.com/	cgf AT bbc DOT com			"Strange how unreal
VMS=>UNIX Solutions	Boston Business Computing	 the real can be."

- Raw text -


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