mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 16:34:47 +01:00
wait for procproxy to finish
This commit is contained in:
parent
0c690d507a
commit
333f553d7a
1 changed files with 5 additions and 2 deletions
|
@ -463,7 +463,7 @@ def run_subproc(cmds, captured=True):
|
|||
proc.stdout.close()
|
||||
except OSError:
|
||||
pass
|
||||
if not isinstance(prev_proc, ProcProxy):
|
||||
if not prev_is_proxy:
|
||||
add_job({
|
||||
'cmds': cmds,
|
||||
'pids': [i.pid for i in procs],
|
||||
|
@ -472,7 +472,10 @@ def run_subproc(cmds, captured=True):
|
|||
})
|
||||
if background:
|
||||
return
|
||||
wait_for_active_job()
|
||||
if prev_is_proxy:
|
||||
prev_proc.wait()
|
||||
else:
|
||||
wait_for_active_job()
|
||||
if write_target is None:
|
||||
# get output
|
||||
output = ''
|
||||
|
|
Loading…
Add table
Reference in a new issue