Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mitogen
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
mitogen
Commits
e7c70127
Commit
e7c70127
authored
Sep 20, 2017
by
David Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fakessh: return child exit status
parent
77b8d28c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
mitogen/fakessh.py
mitogen/fakessh.py
+6
-2
No files found.
mitogen/fakessh.py
View file @
e7c70127
...
...
@@ -328,7 +328,11 @@ def run(dest, router, args, deadline=None):
:param mitogen.core.Router router:
:param list[str] args:
Command line arguments for local program, e.g. ``['rsync', '/tmp', 'remote:/tmp']``
Command line arguments for local program, e.g.
``['rsync', '/tmp', 'remote:/tmp']``
:returns:
Exit status of the child process.
"""
context_id
=
router
.
context_id_counter
.
next
()
fakessh
=
mitogen
.
master
.
Context
(
router
,
context_id
)
...
...
@@ -376,6 +380,6 @@ def run(dest, router, args, deadline=None):
})
proc
=
subprocess
.
Popen
(
args
,
env
=
env
)
proc
.
wait
()
return
proc
.
wait
()
finally
:
shutil
.
rmtree
(
tmp_path
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment