add O_NONBLOCK to open since tty driver seems to hang.  weird.