mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-21 16:26:12 +08:00
Cygwin: pty: Fix timing of creating invisible console.
- Previously, invisible console was created in fixup_after_exec(). However, actually this should be done in fixup_after_fork(). this patch fixes the issue.
This commit is contained in:
parent
b29fd96cac
commit
67f12b2ea0
@ -2467,6 +2467,8 @@ fhandler_pty_slave::bg_check (int sig, bool dontsignal)
|
||||
void
|
||||
fhandler_pty_slave::fixup_after_fork (HANDLE parent)
|
||||
{
|
||||
create_invisible_console ();
|
||||
|
||||
// fork_fixup (parent, inuse, "inuse");
|
||||
// fhandler_pty_common::fixup_after_fork (parent);
|
||||
report_tty_counts (this, "inherited", "");
|
||||
@ -2475,8 +2477,6 @@ fhandler_pty_slave::fixup_after_fork (HANDLE parent)
|
||||
void
|
||||
fhandler_pty_slave::fixup_after_exec ()
|
||||
{
|
||||
create_invisible_console ();
|
||||
|
||||
if (!close_on_exec ())
|
||||
fixup_after_fork (NULL); /* No parent handle required. */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user