(timeout)
| 198 | |
| 199 | |
| 200 | def _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 | |
| 209 | def hw_main(seed_hosts, auto_hosts): |