Path: utzoo!utgpu!attcan!uunet!mcvax!hp4nl!ctisbv!pim
From: pim@cti-software.nl (Pim Zandbergen)
Newsgroups: comp.unix.microport,comp.unix.i386
Subject: Re: life after death (of uport)
Keywords: ISC-2.0.2 uport-3.0e
Message-ID: <1355@ctisbv.cti-software.nl>
Date: 11 Aug 89 22:53:28 GMT
References: <57@calcite.UUCP> <6344@turnkey.gryphon.COM> <1989Aug10.230329.24196@robohack.uucp> <60@calcite.UUCP>
Followup-To: comp.unix.microport
Organization: CTI Software BV, The Hague, the Netherlands
Lines: 24

vjs@calcite.UUCP (Vernon Schryver) writes:

>In article <1989Aug10.230329.24196@robohack.uucp>, woods@robohack.uucp (Greg A. Woods) writes:

>The 2.0.2 asy driver does not correctly understand DCD.  If you try `cu -d`,
>you'll notice that SVR3.2 cu(1) and UUCP like to open the device with and
>later turn off NDELAY.  The 2.0.2 driver seems to understand NDELAY to mean
>(1) "open even if DCD is false, and die if ever NDELAY and DCD are both
>false", instead of (2) "open even if DCD is false, and do not pay attention
>to DCD until DCD has been true."   Whatever, the result is that cu(1)
>looses the port as soon as it turns off NDELAY. 

This is exactly how NDELAY should work. You should set CLOCAL immediately
after having opened with O_NDELAY, if you want to keep the line after
having turned off NDELAY.

Cu and uucp will do this if you specify \M (set CLOCAL) and \m (turn it off)
in the Dialers file. This feature was introduced in HDB uucp in System V r 3.1.

-- 
Pim Zandbergen                                 internet : pim@cti-software.nl
CTI Software BV                                uucp     : ..!uunet!ctisbv!pim
Laan Copes van Cattenburch 70                  phone    : +31 70 542302
2585 GD The Hague, The Netherlands             fax      : +31 70 512837