MCPcopy Create free account
hub / github.com/sshuttle/sshuttle / _stdin_still_ok

Function _stdin_still_ok

sshuttle/hostwatch.py:200–206  ·  view source on GitHub ↗
(timeout)

Source from the content-addressed store, hash-verified

198
199
200def _stdin_still_ok(timeout):
201 r, _, _ = select.select([sys.stdin.fileno()], [], [], timeout)
202 if r:
203 b = os.read(sys.stdin.fileno(), 4096)
204 if not b:
205 return False
206 return True
207
208
209def hw_main(seed_hosts, auto_hosts):

Callers 1

hw_mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected