Cygwin: Fix incorrect TTY for non-cygwin process.

- After commit d4045fdbef, the TTY
  displayed by ps command is incorrect if the process is non-cygwin
  process. This patch fixes this issue.
This commit is contained in:
Takashi Yano
2019-09-20 12:04:36 +09:00
committed by Ken Brown
parent aa529d00ea
commit 4186409101
2 changed files with 2 additions and 5 deletions

View File

@@ -622,10 +622,7 @@ child_info_spawn::worker (const char *prog_arg, const char *const *argv,
si.cb = sizeof (si);
if (!iscygwin ())
{
init_console_handler (myself->ctty > 0);
myself->ctty = 0;
}
init_console_handler (myself->ctty > 0);
loop:
/* When ruid != euid we create the new process under the current original