>>I am having trouble when opening a device with the >>O_NONBLOCK option. > >What you're asking about is a Unix/POSIX feature and not a feature >of the C or C++ programming languages (so I've removed them from followups). > >>I am using Digital Unix 4.0d, >>my device is mapped, using LAT, >>to a terminal server port, a DEC 90TL terminal server. >> >>The terminal server port is configured to not allow >>the connection until the modem signals are active. >> >>My problem is that the open call is hanging, >>(because I disconnected the modem, to test this case) >>and I expected it to return with some error >>indicating the blocked state of the device. The problem you're seeing here is almost certainly solvable by twiddling your tty settings -- read the man pages for termios() and stty(). I think you're most interested in the clocal bit. What you're probably seeings is a block at the hardware or driver level which is waiting for the modem to assert DCD, which it is not going to do unless you either program it to always leave it on (AT&C0, AT&W for most), or you tell the low-level driver to ignore it. I have had this problem under various unices (but not OSF, I've never used it) and this always solved it. Cheers, Wes -- Wesley W. Garland���������������� | Email: wes@page.ca��� Director, Product Development���� | Pager: wes-pager@kingston.net PageMail, Inc.������������������� | Kingston, ON Canada�������������� | Voice: (888) 247 6246