diff options
Diffstat (limited to 'winsup/cygwin/pinfo.cc')
-rw-r--r-- | winsup/cygwin/pinfo.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc index d45e0a3cf..f426bde64 100644 --- a/winsup/cygwin/pinfo.cc +++ b/winsup/cygwin/pinfo.cc @@ -188,6 +188,7 @@ pinfo::exit (DWORD n) sigproc_terminate (ES_FINAL); if (myself->ctty >= 0 && myself->ctty != TTY_CONSOLE) { + lock_ttys here; tty *t = cygwin_shared->tty[myself->ctty]; if (!t->slave_alive ()) t->setpgid (0); |