Fix: Make sys.stdin non-blocking using fcntl

Oops. Good catch. The code was written with the assumption that nothing would be read from stdin. What were you doing for this code path to be invoked?