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
8dad396e
Commit
8dad396e
authored
Sep 20, 2017
by
David Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make subsystem requests die with a useful error.
parent
4244a460
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
mitogen/fakessh.py
mitogen/fakessh.py
+4
-1
No files found.
mitogen/fakessh.py
View file @
8dad396e
...
...
@@ -282,7 +282,7 @@ def _fakessh_main(mitogen_, dest_context_id):
die
(
'Missing hostname'
)
for
opt
,
optarg
in
opts
:
if
0
and
opt
==
'-s'
:
if
opt
==
'-s'
:
subsystem
=
True
else
:
LOG
.
debug
(
'Warning option %s %s is ignored.'
,
opt
,
optarg
)
...
...
@@ -291,6 +291,9 @@ def _fakessh_main(mitogen_, dest_context_id):
LOG
.
debug
(
'opts: %r'
,
opts
)
LOG
.
debug
(
'args: %r'
,
args
)
if
subsystem
:
die
(
'-s <subsystem> is not yet supported'
)
dest
=
mitogen
.
master
.
Context
(
mitogen_
.
router
,
dest_context_id
)
control_handle
,
stdin_handle
=
dest
.
call_with_deadline
(
None
,
True
,
_start_slave
,
mitogen
.
context_id
,
args
)
...
...
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