mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-06 09:20:57 +01:00
x
This commit is contained in:
parent
86efad1309
commit
de56c3119e
1 changed files with 3 additions and 0 deletions
|
@ -1465,12 +1465,15 @@ class CommandPipeline:
|
|||
stderr = stderr.buffer
|
||||
# read from process while it is running
|
||||
timeout = builtins.__xonsh_env__.get('XONSH_PROC_FREQUENCY')
|
||||
check_prev_done = len(self.procs) == 1
|
||||
while proc.poll() is None:
|
||||
if getattr(proc, 'suspended', False):
|
||||
return
|
||||
elif getattr(proc, 'in_alt_mode', False):
|
||||
time.sleep(0.1) # probably not leaving any time soon
|
||||
continue
|
||||
elif not check_prev_done:
|
||||
if ()
|
||||
elif self._prev_procs_done():
|
||||
self._close_prev_procs()
|
||||
proc.prevs_are_closed = True
|
||||
|
|
Loading…
Add table
Reference in a new issue