• Scott Kuhl's avatar
    Fix #494 sshuttle caught in infinite select() loop. · 5d6b1467
    Scott Kuhl authored
    Improve detection of when the ssh process exits in both daemon and
    foreground modes. Previously, sshuttle could infinite loop with 100%
    cpu usage if the ssh process died. On machines that use suspend, the
    ssh connection might not resume after wakeup. Now, this situation is
    detected and sshuttle exits. The fix involves changing the return
    value we check for when we call poll() and using a psutil function to
    detect when the process exits if we are running sshuttle as a daemon.
    5d6b1467
Name
Last commit
Last update
.github/workflows Loading commit data...
bin Loading commit data...
docs Loading commit data...
sshuttle Loading commit data...
tests Loading commit data...
.gitignore Loading commit data...
.prospector.yml Loading commit data...
CHANGES.rst Loading commit data...
LICENSE Loading commit data...
MANIFEST.in Loading commit data...
README.rst Loading commit data...
bandit.yml Loading commit data...
requirements-tests.txt Loading commit data...
requirements.txt Loading commit data...
run Loading commit data...
setup.cfg Loading commit data...
setup.py Loading commit data...
tox.ini Loading commit data...