From: Tom Leitner <tom@radar.tu-graz.ac.at>
Subject: Re: Blocking open problem on Digital Unix
Date: 1999/03/08 [thread overview]
Message-ID: <7c0fcq$nht@fstgal00.tu-graz.ac.at> (raw)
In-Reply-To: 7bmga9$ncr$1@nnrp1.dejanews.com
In comp.unix.osf.osf1 dshifflett@gwdi.com wrote:
> I am having trouble when opening a device with the
> O_NONBLOCK option.
> 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.
> If anyone has any experience in this,
> or ideas on what to try I would appreciate
> hearing them.
Use this for opening the port:
chan = open (device, O_RDONLY | O_NDELAY);
{
int i;
i = fcntl(chan, F_GETFL);
i &= ~O_NDELAY;
fcntl(chan, F_SETFL, i);
}
Tom
--
Tom Leitner Dept. of Communications, Graz Univ. of Technology,
tom@radar.tu-graz.ac.at Inffeldgasse 12, A-8010 Graz / Austria / Europe
PGP public key @ http://wiis.tu-graz.ac.at/people/tom.html
prev parent reply other threads:[~1999-03-08 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
1999-03-08 5:00 ` Tom Leitner [this message]
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