Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2011-06-04 04:29:19 +0400
committerChristopher Faylor <me@cgf.cx>2011-06-04 04:29:19 +0400
commitcb353ff36f5283fae953d15e6bca338f5ca2ddc1 (patch)
treee212843bcceed2342c5f387262562ccea22d6562 /winsup/cygwin/pinfo.cc
parent32bf308231ab68f8bc54523fa429b3100a9952f2 (diff)
* pinfo.cc (_pinfo::set_ctty): Don't reset myself->{pgid,sid} if terminal has
no pgid or sid settings.
Diffstat (limited to 'winsup/cygwin/pinfo.cc')
-rw-r--r--winsup/cygwin/pinfo.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc
index c81786359..8a1780c82 100644
--- a/winsup/cygwin/pinfo.cc
+++ b/winsup/cygwin/pinfo.cc
@@ -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 ();