From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1014db,5f7a1be019fe622f X-Google-Attributes: gid1014db,public X-Google-Thread: fee84,5f7a1be019fe622f X-Google-Attributes: gidfee84,public X-Google-Thread: fc89c,5f7a1be019fe622f X-Google-Attributes: gidfc89c,public X-Google-Thread: 109fba,5f7a1be019fe622f X-Google-Attributes: gid109fba,public From: fred@genesis.demon.co.uk (Lawrence Kirby) Subject: Re: Blocking open problem on Digital Unix Date: 1999/03/07 Message-ID: <920812956snz@genesis.demon.co.uk>#1/1 X-Deja-AN: 452247841 References: <7bmga9$ncr$1@nnrp1.dejanews.com> Followup-To: comp.unix.osf.osf1,comp.unix.programmer X-Complaints-To: abuse@demon.net X-Mail2News-Path: news.demon.net!genesis.demon.co.uk X-Trace: mail2news.demon.co.uk 920823704 mail2news:21301 mail2news mail2news.demon.co.uk Organization: none Reply-To: fred@genesis.demon.co.uk Newsgroups: comp.lang.c,comp.lang.c++,comp.unix.osf.osf1,comp.unix.programmer In article <7bmga9$ncr$1@nnrp1.dejanews.com> dshifflett@gwdi.com writes: >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. Either there's a bug in the system or a bug in your code. Why not post a minimal but complete example program so we can verify that the code isn't the problem, and others might be able to test the code on similar systems. -- ----------------------------------------- Lawrence Kirby | fred@genesis.demon.co.uk Wilts, England | 70734.126@compuserve.com -----------------------------------------