diff options
author | Takashi Yano via Cygwin-patches <cygwin-patches@cygwin.com> | 2020-12-14 17:25:33 +0900 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2020-12-14 11:02:23 +0100 |
commit | c2c33e4d673f630a4f85ef8339e3456384e94850 (patch) | |
tree | e9f2cd2f06ac5f88f75f961c87835d84eeed2192 /winsup/cygwin/spawn.cc | |
parent | cf1ef2dc5b95342fa337141b3b1ec85aac73229f (diff) | |
download | newlib-c2c33e4d673f630a4f85ef8339e3456384e94850.zip newlib-c2c33e4d673f630a4f85ef8339e3456384e94850.tar.gz newlib-c2c33e4d673f630a4f85ef8339e3456384e94850.tar.bz2 |
Cygwin: pty: Skip term_has_pcon_cap() if pseudo console is disabled.
- This patch skips unnecessary term_has_pcon_cap() call if pseudo
console is disabled.
Diffstat (limited to 'winsup/cygwin/spawn.cc')
-rw-r--r-- | winsup/cygwin/spawn.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc index 83b216f..5057af9 100644 --- a/winsup/cygwin/spawn.cc +++ b/winsup/cygwin/spawn.cc @@ -656,7 +656,7 @@ child_info_spawn::worker (const char *prog_arg, const char *const *argv, if (!iscygwin () && ptys_primary && is_console_app (runpath)) { bool nopcon = mode != _P_OVERLAY && mode != _P_WAIT; - if (!ptys_primary->term_has_pcon_cap (envblock)) + if (disable_pcon || !ptys_primary->term_has_pcon_cap (envblock)) nopcon = true; if (ptys_primary->setup_pseudoconsole (&si_pcon, nopcon)) { |