Browse Source

Add a comment on nonblocking stdin

check-vt100
Aleksander Kiryk 4 years ago
parent
commit
5fa57ede8b
  1. 1
      watch.py

1
watch.py

@ -151,6 +151,7 @@ def watch(session, fsdev):
signal.signal(signal.SIGTERM, kill_handler)
# Make stdin nonblocking to continue working when no command is sent
flags = fcntl.fcntl(sys.stdin, fcntl.F_GETFL)
fcntl.fcntl(sys.stdin, fcntl.F_SETFL, flags | os.O_NONBLOCK)

Loading…
Cancel
Save