mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-21 00:07:36 +08:00
Cygwin: console: Make console input work in GDB and strace.
- After commit 2232498c712acc97a38fdc297cbe53ba74d0ec2c, console input cause error in GDB or strace. This patch fixes this issue.
This commit is contained in:
parent
dac0c6227c
commit
0269c1d8fa
@ -570,7 +570,7 @@ _pinfo::set_ctty (fhandler_termios *fh, int flags)
|
||||
tc.setsid (sid);
|
||||
sid = tc.getsid ();
|
||||
/* See above */
|
||||
if (!tc.getpgid () && pgid == pid)
|
||||
if ((!tc.getpgid () || being_debugged ()) && pgid == pid)
|
||||
tc.setpgid (pgid);
|
||||
}
|
||||
debug_printf ("cygheap->ctty now %p, archetype %p", cygheap->ctty, fh ? fh->archetype : NULL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user