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:
Diffstat (limited to 'winsup/cygwin/fhandler_termios.cc')
-rw-r--r--winsup/cygwin/fhandler_termios.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler_termios.cc b/winsup/cygwin/fhandler_termios.cc
index b5d9f2ef3..b7f7860c5 100644
--- a/winsup/cygwin/fhandler_termios.cc
+++ b/winsup/cygwin/fhandler_termios.cc
@@ -58,6 +58,13 @@ fhandler_termios::tcinit (tty_min *this_tc, bool force)
tc->pgid = myself->pgid;
tc->initialized (true);
}
+ else if (myself->ppid == 1 && myself->pid == myself->pgid
+ && myself->pgid == myself->sid)
+ /* We have been started from a non-Cygwin process. So we just become
+ tty process group leader.
+ TODO: Investigate how SIGTTIN should be handled with pure-windows
+ programs. */
+ tc->pgid = myself->pgid;
}
int