fakessh: restore unpickle() semantics.

wip-fakessh-exit-status
David Wilson 7 years ago
parent e63e9d299e
commit 37e3151be8

@ -137,7 +137,7 @@ class Process(object):
if msg == mitogen.core._DEAD:
return
data = msg.unpickle()
data = msg.unpickle(throw=False)
if data == mitogen.core._DEAD:
IOLOG.debug('%r._on_stdin() -> %r', self, data)
self.pump.close()
@ -148,7 +148,7 @@ class Process(object):
def _on_control(self, msg):
if msg != mitogen.core._DEAD:
command, arg = msg.unpickle()
command, arg = msg.unpickle(throw=False)
LOG.debug('%r._on_control(%r, %s)', self, command, arg)
func = getattr(self, '_on_%s' % (command,), None)

Loading…
Cancel
Save