www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/02/20/02:03:21

From: ian AT cygnus DOT com (Ian Lance Taylor)
Subject: Re: Occasional hang with CYGWIN32=tty?
20 Feb 1998 02:03:21 -0800 :
Message-ID: <199802200605.BAA05453.cygnus.cygwin32.developers@subrogation.cygnus.com>
References: <Eonu1x DOT BL1 AT bbc DOT com>
To: cgf AT bbc DOT com
Cc: cygwin32-developers AT cygnus DOT com

   From: cgf AT bbc DOT com (Christopher Faylor)
   Date: Fri, 20 Feb 1998 04:34:45 GMT

   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 could imagine that this might happen if you fork/exec and/or spawn a
process which is not a cygwin32 process.  It might conceivably happen
if you fork/exec and/or spawn a cygwin32 process which uses an older
DLL.  Is it possible that one of those situations is occurring?

Ian

- Raw text -


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