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: 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