code: def set_nonblock(fd):
      # type: (int) -> None
      
      fcntl.fcntl(fd,
                  fcntl.F_SETFL,
                  fcntl.fcntl(fd, fcntl.F_GETFL) | os.O_NONBLOCK)
docs: Set the given file descriptor to non-blocking mode.