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
|
void
|
||||||
fhandler_pty_slave::fixup_after_fork (HANDLE parent)
|
fhandler_pty_slave::fixup_after_fork (HANDLE parent)
|
||||||
{
|
{
|
||||||
|
create_invisible_console ();
|
||||||
|
|
||||||
// fork_fixup (parent, inuse, "inuse");
|
// fork_fixup (parent, inuse, "inuse");
|
||||||
// fhandler_pty_common::fixup_after_fork (parent);
|
// fhandler_pty_common::fixup_after_fork (parent);
|
||||||
report_tty_counts (this, "inherited", "");
|
report_tty_counts (this, "inherited", "");
|
||||||
|
@ -2475,8 +2477,6 @@ fhandler_pty_slave::fixup_after_fork (HANDLE parent)
|
||||||
void
|
void
|
||||||
fhandler_pty_slave::fixup_after_exec ()
|
fhandler_pty_slave::fixup_after_exec ()
|
||||||
{
|
{
|
||||||
create_invisible_console ();
|
|
||||||
|
|
||||||
if (!close_on_exec ())
|
if (!close_on_exec ())
|
||||||
fixup_after_fork (NULL); /* No parent handle required. */
|
fixup_after_fork (NULL); /* No parent handle required. */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue