mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-06 17:30:59 +01:00
try reverting windows-specific deadlock fix (to test whether new thing works on windows)
This commit is contained in:
parent
0ffc7ed518
commit
d661c5e7ec
1 changed files with 1 additions and 4 deletions
|
@ -42,16 +42,13 @@ if ON_WINDOWS:
|
||||||
return
|
return
|
||||||
while obj.returncode is None:
|
while obj.returncode is None:
|
||||||
try:
|
try:
|
||||||
outs, errs = obj.communicate(timeout=0.01)
|
obj.wait(0.01)
|
||||||
except TimeoutExpired:
|
except TimeoutExpired:
|
||||||
pass
|
pass
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
obj.kill()
|
obj.kill()
|
||||||
outs, errs = obj.communicate()
|
|
||||||
if obj.poll() is not None:
|
if obj.poll() is not None:
|
||||||
builtins.__xonsh_active_job__ = None
|
builtins.__xonsh_active_job__ = None
|
||||||
obj.stdout = BytesIO(outs)
|
|
||||||
obj.stderr = BytesIO(errs)
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
def _continue(obj):
|
def _continue(obj):
|
||||||
|
|
Loading…
Add table
Reference in a new issue