better way to test/set cygwin proc setting

This commit is contained in:
Wendell Turner 2020-09-16 09:05:51 -04:00
parent 067393073f
commit 4a1a77862e
2 changed files with 2 additions and 3 deletions

View file

@ -1304,7 +1304,7 @@ def DEFAULT_VARS():
is_bool_or_none,
to_bool_or_none,
bool_or_none_to_str,
True,
True if not ON_CYGWIN else False,
"Whether or not to try to run subrocess mode in a Python thread, "
"when applicable. There are various trade-offs, which normally "
"affects only interactive sessions.\n\nWhen True:\n\n"

View file

@ -2033,8 +2033,7 @@ class CommandPipeline:
# read from process now that it is over
yield from safe_readlines(stdout)
self.stream_stderr(safe_readlines(stderr))
if not ON_CYGWIN:
proc.wait()
proc.wait()
self._endtime()
yield from safe_readlines(stdout)
self.stream_stderr(safe_readlines(stderr))