🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.sys5
Article #581

Re: CLOCAL, or catch-22

#581
From: Guy Harris
Date: Fri, 21 Aug 1987 20:20
33 lines
2255 bytes
> I don't know about your system, but it don't work on mine -- Zaiz SYSV.2 on a
> DSI-32 in a Compaq Deskpro. CU just sits and waits for CD until I force it
> true manually.
> I think this trick only works if your dialing in, not out.

Well, yes, but what would you expect?  "getty" handles dialing in, not out.

If the problem is that you have a modem that does not permanently turn carrier
on in order to that "dumb" OSes can allow a process to open the port and send
dialing instructions to the modem, the fault probably lies either with the
dialing code that "cu" is using or with the instructions given to "cu".  It
*should* be able to open the port with O_NDELAY, turn on CLOCAL, do the
dialing, turn CLOCAL off, and then do *another* open to wait for carrier to
come up, or something like that.

> Secondly, getty -c doesn't like -CLOCAL.  Says it's undefined.

It doesn't like "-" in front of anything.  When you define modes, it starts out
with all the mode bits being zero, and turns on the ones you specify.  As such,
there's no need to have a way of turning mode bits off; not turning them *on*
is sufficient.

> Thirdly, it wouldn't do any good anyway cause if you had to fake CD in the
> first place, how you gonna know when the carrier drops ???

You missed the whole point.  He *doesn't* want to know when carrier drops; he
doesn't give a damn about CD!  He wants to hook up a *local* terminal without
having to tie CD high.  Since the terminal would be hardwired to the machine,
the status of CD is not interesting; it doesn't indicate that "the connection
was dropped" because the connection doesn't *get* dropped.
	Guy Harris
	{ihnp4, decvax, seismo, decwrl, ...}!sun!guy
	guy@sun.com
Technical Details
Message-ID: <26258@sun.uucp>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!rutgers!ames!amdcad!sun!gorodish!guy
References: <325@nsta.UUCP> <25073@sun.uucp> <3607@sdcsvax.UCSD.EDU> <201@trwrc.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!rutgers!ames!amdcad!sun!gorodish!guy
From: guy%gorodish@Sun.COM (Guy Harris)
Newsgroups: comp.bugs.sys5
Subject: Re: CLOCAL, or catch-22
Message-ID: <26258@sun.uucp>
Date: Fri, 21-Aug-87 16:20:54 EDT
Article-I.D.: sun.26258
Posted: Fri Aug 21 16:20:54 1987
Date-Received: Sun, 23-Aug-87 06:47:53 EDT
References: <325@nsta.UUCP> <25073@sun.uucp> <3607@sdcsvax.UCSD.EDU> <201@trwrc.UUCP>
Sender: news@sun.uucp
Lines: 33