2010-10-23 Christopher Faylor <me+cygwin@cgf.cx>
+ * pinfo.cc (pinfo::exit): Grab a tty lock before setting pgid.
+
+2010-10-23 Christopher Faylor <me+cygwin@cgf.cx>
+
* pinfo.cc (pinfo::exit): Reset tty pgrp to zero if no more handles open.
(_pinfo::set_ctty): Remove debugging stuff.
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);