mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-05-10 11:05:03 +02:00
Remove extra whitespace, wrap long lines
This commit is contained in:
parent
5d6b14673f
commit
72ae202df3
@ -549,12 +549,14 @@ def _main(tcp_listener, udp_listener, fw, ssh_cmd, remotename,
|
|||||||
# process is no longer our child (it returns 0 all the
|
# process is no longer our child (it returns 0 all the
|
||||||
# time).
|
# time).
|
||||||
if not psutil.pid_exists(serverproc.pid):
|
if not psutil.pid_exists(serverproc.pid):
|
||||||
raise Fatal('ssh connection to server (pid %d) exited.' % serverproc.pid)
|
raise Fatal('ssh connection to server (pid %d) exited.' %
|
||||||
|
serverproc.pid)
|
||||||
else:
|
else:
|
||||||
rv = serverproc.poll()
|
rv = serverproc.poll()
|
||||||
# poll returns None if process hasn't exited.
|
# poll returns None if process hasn't exited.
|
||||||
if rv is not None:
|
if rv is not None:
|
||||||
raise Fatal('ssh connection to server (pid %d) exited with returncode %d' % (serverproc.pid, rv))
|
raise Fatal('ssh connection to server (pid %d) exited'
|
||||||
|
'with returncode %d' % (serverproc.pid, rv))
|
||||||
|
|
||||||
while 1:
|
while 1:
|
||||||
check_ssh_alive()
|
check_ssh_alive()
|
||||||
|
Loading…
Reference in New Issue
Block a user