Cygwin: Fix incorrect TTY for non-cygwin process.
- After commit d4045fdbef60d8e7e0d11dfe38b048ea2cb8708b, 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:
parent
aa529d00ea
commit
4186409101
@ -949,7 +949,7 @@ _cygtls::interrupt_setup (siginfo_t& si, void *handler, struct sigaction& siga)
|
|||||||
if (incyg)
|
if (incyg)
|
||||||
set_signal_arrived ();
|
set_signal_arrived ();
|
||||||
|
|
||||||
if (!have_execed)
|
if (!have_execed && ch_spawn.iscygwin ())
|
||||||
proc_subproc (PROC_CLEARWAIT, 1);
|
proc_subproc (PROC_CLEARWAIT, 1);
|
||||||
sigproc_printf ("armed signal_arrived %p, signal %d",
|
sigproc_printf ("armed signal_arrived %p, signal %d",
|
||||||
signal_arrived, si.si_signo);
|
signal_arrived, si.si_signo);
|
||||||
|
@ -622,10 +622,7 @@ child_info_spawn::worker (const char *prog_arg, const char *const *argv,
|
|||||||
si.cb = sizeof (si);
|
si.cb = sizeof (si);
|
||||||
|
|
||||||
if (!iscygwin ())
|
if (!iscygwin ())
|
||||||
{
|
init_console_handler (myself->ctty > 0);
|
||||||
init_console_handler (myself->ctty > 0);
|
|
||||||
myself->ctty = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
loop:
|
loop:
|
||||||
/* When ruid != euid we create the new process under the current original
|
/* When ruid != euid we create the new process under the current original
|
||||||
|
Loading…
x
Reference in New Issue
Block a user