Cygwin: pty: Fix PTY so that cygwin setup shows help with -h option.
- After commit 169d65a577
, cygwin
setup fails to show help message when -h option is specified, as
reported in https://cygwin.com/ml/cygwin/2019-09/msg00248.html.
This patch fixes the problem.
This commit is contained in:
parent
1add2aab39
commit
0479adc860
|
@ -790,8 +790,6 @@ child_info_spawn::worker (const char *prog_arg, const char *const *argv,
|
||||||
NtClose (old_winpid_hdl);
|
NtClose (old_winpid_hdl);
|
||||||
real_path.get_wide_win32_path (myself->progname); // FIXME: race?
|
real_path.get_wide_win32_path (myself->progname); // FIXME: race?
|
||||||
sigproc_printf ("new process name %W", myself->progname);
|
sigproc_printf ("new process name %W", myself->progname);
|
||||||
if (!iscygwin ())
|
|
||||||
close_all_files ();
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -890,6 +888,8 @@ child_info_spawn::worker (const char *prog_arg, const char *const *argv,
|
||||||
wait_for_myself ();
|
wait_for_myself ();
|
||||||
}
|
}
|
||||||
myself.exit (EXITCODE_NOSET);
|
myself.exit (EXITCODE_NOSET);
|
||||||
|
if (!iscygwin ())
|
||||||
|
close_all_files ();
|
||||||
break;
|
break;
|
||||||
case _P_WAIT:
|
case _P_WAIT:
|
||||||
case _P_SYSTEM:
|
case _P_SYSTEM:
|
||||||
|
|
Loading…
Reference in New Issue