Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: "Wesley W. Garland" <wes@page.ca>
Subject: Re: Blocking open problem on Digital Unix
Date: 1999/03/12	[thread overview]
Message-ID: <36e8afb8.0@news.cgocable.net> (raw)
In-Reply-To: 920812956snz@genesis.demon.co.uk

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1574 bytes --]

>>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






  reply	other threads:[~1999-03-12  5:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-04  5:00 Blocking open problem on Digital Unix dshifflett
1999-03-07  5:00 ` Lawrence Kirby
1999-03-12  5:00   ` Wesley W. Garland [this message]
1999-03-08  5:00 ` Tom Leitner
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox