summaryrefslogtreecommitdiffstats
path: root/requirements.txt
diff options
context:
space:
mode:
authorScott Kuhl <kuhl@mtu.edu>2020-09-07 15:39:36 -0400
committerScott Kuhl <kuhl@mtu.edu>2020-09-07 15:46:33 -0400
commit5d6b14673f2043c3511f221201f0255171ae474a (patch)
tree947b19dd303c70b1166906fc8bd139980632fc14 /requirements.txt
parent19f653df36d818531e35a03c02df4bda8a192bc0 (diff)
Fix #494 sshuttle caught in infinite select() loop.
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.
Diffstat (limited to 'requirements.txt')
-rw-r--r--requirements.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/requirements.txt b/requirements.txt
index a77026c..291fe15 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1 +1,2 @@
setuptools-scm==4.1.2
+psutil