]> sourceware.org Git - newlib-cygwin.git/commitdiff
* pinfo.cc (pinfo::exit): Grab a tty lock before setting pgid.
authorChristopher Faylor <me@cgf.cx>
Sat, 23 Oct 2010 18:57:43 +0000 (18:57 +0000)
committerChristopher Faylor <me@cgf.cx>
Sat, 23 Oct 2010 18:57:43 +0000 (18:57 +0000)
winsup/cygwin/ChangeLog
winsup/cygwin/pinfo.cc

index 56e3b67c4c5b2298d40f15051351c2d6df3480c9..76b2d428ccbdd1de1e32e3333c067ed8cdd13658 100644 (file)
@@ -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>
 
        * pinfo.cc (pinfo::exit): Reset tty pgrp to zero if no more handles open.
index d45e0a3cfcaf89868a7001f4085fec9e1f1e5473..f426bde6490f130ec69931cf7a2f3f56c314bd3b 100644 (file)
@@ -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);
This page took 0.034739 seconds and 5 git commands to generate.