* pinfo.cc (_pinfo::set_ctty): Don't reset myself->{pgid,sid} if terminal has

no pgid or sid settings.
This commit is contained in:
Christopher Faylor 2011-06-04 00:29:19 +00:00
parent 32bf308231
commit cb353ff36f
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2011-06-03 Christopher Faylor <me.cygwin2011@cgf.cx>
* pinfo.cc (_pinfo::set_ctty): Don't reset myself->{pgid,sid} if
terminal has no pgid or sid settings.
2011-06-03 Christopher Faylor <me.cygwin2011@cgf.cx>
* fhandler.cc (fhandler_base_overlapped::wait_overlapped): Only raise

View File

@ -404,7 +404,7 @@ _pinfo::set_ctty (tty_min *tc, int flags, fhandler_termios *fh)
syscall_printf ("attaching %s sid %d, pid %d, pgid %d, tty->pgid %d, tty->sid %d",
__ctty (), sid, pid, pgid, tc->getpgid (), tc->getsid ());
if (!cygwin_finished_initializing && !myself->cygstarted
&& myself->pgid == myself->pid)
&& myself->pgid == myself->pid && tc->getpgid () && tc->getsid ())
{
myself->pgid = tc->getpgid ();
myself->sid = tc->getsid ();