* pinfo.cc (pinfo::exit): Grab a tty lock before setting pgid.
This commit is contained in:
parent
74882a259a
commit
c4f296c2a9
|
@ -1,3 +1,7 @@
|
||||||
|
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>
|
2010-10-23 Christopher Faylor <me+cygwin@cgf.cx>
|
||||||
|
|
||||||
* pinfo.cc (pinfo::exit): Reset tty pgrp to zero if no more handles open.
|
* pinfo.cc (pinfo::exit): Reset tty pgrp to zero if no more handles open.
|
||||||
|
|
|
@ -188,6 +188,7 @@ pinfo::exit (DWORD n)
|
||||||
sigproc_terminate (ES_FINAL);
|
sigproc_terminate (ES_FINAL);
|
||||||
if (myself->ctty >= 0 && myself->ctty != TTY_CONSOLE)
|
if (myself->ctty >= 0 && myself->ctty != TTY_CONSOLE)
|
||||||
{
|
{
|
||||||
|
lock_ttys here;
|
||||||
tty *t = cygwin_shared->tty[myself->ctty];
|
tty *t = cygwin_shared->tty[myself->ctty];
|
||||||
if (!t->slave_alive ())
|
if (!t->slave_alive ())
|
||||||
t->setpgid (0);
|
t->setpgid (0);
|
||||||
|
|
Loading…
Reference in New Issue