Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2006-07-18 19:09:11 +0400
committerChristopher Faylor <me@cgf.cx>2006-07-18 19:09:11 +0400
commit8432b8b206cf898ac543aebea85c9e0b8494e8d0 (patch)
tree6a676a69ca93d85a06445f738ed88701d9ab68ef /winsup/cygwin/tty.cc
parent62e9d4b96f5bc2aa1aa23361082e01297db32593 (diff)
* tty.cc (tty_list::terminate): Don't enter the busy loop if we don't own the
master.
Diffstat (limited to 'winsup/cygwin/tty.cc')
-rw-r--r--winsup/cygwin/tty.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/tty.cc b/winsup/cygwin/tty.cc
index 018ffe08b..cfc4b086a 100644
--- a/winsup/cygwin/tty.cc
+++ b/winsup/cygwin/tty.cc
@@ -139,7 +139,7 @@ tty_list::terminate ()
int ttynum = myself->ctty;
/* Keep master running till there are connected clients */
- if (ttynum != -1 && ttys[ttynum].master_pid == myself->pid)
+ if (ttynum != -1 && tty_master && ttys[ttynum].master_pid == myself->pid)
{
tty *t = ttys + ttynum;
CloseHandle (tty_master->from_master);