From: peirce@gumby.cc.wmich.edu (Leonard J. Peirce)
Subject: Re: Ultrix 4.1 and printers on LAT terminal servers
Date: 9 Jul 91 13:30:37 GMT [thread overview]
Message-ID: <1991Jul9.133037.20154@gumby.cc.wmich.edu> (raw)
In-Reply-To: 35@mhinfo.UUCP
In article <35@mhinfo.UUCP> carrato@mhinfo.UUCP (Tony Carrato) writes:
>In article <2456@netmbx.UUCP> weis@netmbx.UUCP (Dietmar Weis) writes:
>>krf@wucs1.wustl.edu (Kevin R. Fenster) writes:
>>
>>>/usr/lib/lpd: lp: cannot open /dev/tty09: Socket is already connected
>>
>> Nothing new. I got the same problem on every Risc system I
>> installed. There were DSystem 3100, DSystem 5100, Dstation 3100.
>> It appears with 4.0 and 4.1.
>>
>> [...]
>>
>>>I need help! Anybody else seen this? Anybody have printers working
>>>on a terminal server printing from Ultrix 4.1? It appears that the
>>>important parts are: LAT & Ultrix 4.1. I don't know if the
>>>DECsystem 5500 has anything to do with it. I also don't know if
>>>the brand of terminal server has anything to do with it.
>>
> [...]
>1) I'd recommend not sharing the port between Ultrix and VMS. Ultrix forgets
>to release the port periodically.
I got rid of the hung port problem when sharing between Ultrix and VMS.
I did three things:
1) Got the LAT patches from DEC (grr....)
2) Specified the terminal server and port when LAT is started in rc.local.
I was using it in printcap but after I got it working the other way
I didn't to mess with it. It might work just fine in printcap.
3) Protected lpd the way it's supposed to be protected. It should be
owned by root, group daemon, and protected 6711 (setuid, setgid).
I think it was 700, owner root, group system in the distribution.
Ports don't hang anymore and the VMS people were especially happy. A problem
still exists with LAT printing, though.
It happens when VMS already has the port and Ultrix comes along and tries to
open it. The Ultrix open fails and thinks that the queue is terminally ill
even though the port is just busy. The daemon dies and has to be restarted
manually. lpd isn't smart enough (at least the LAT code isn't, anyway) to
realize the port was just busy and to keep trying. It's also possible that
LAT is returning the wrong error code. On VMS, if there is a problem accessing
a printer it will keep trying indefinitely.
If I had the source I'd fix it myself. Unfortunately, our source license
is still in the works. I've seen the code for the 3.1 lpd and the fix should
be trivial. All it needs is some code that will continue trying the open
after it fails. Anyone with 4.x source want to try it?
--
Leonard J. Peirce Internet: peirce@gumby.cc.wmich.edu
Western Michigan University peirce@gw.wmich.edu
Academic Computing Services
Kalamazoo, MI 49008 Phone: (616) 387-5469
"Answer that, it may be the phone." -- Anthony Wachs, TONY IN RH20 LAND
prev parent reply other threads:[~1991-07-09 13:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1991-06-28 21:27 Ultrix 4.1 and printers on LAT terminal servers Kevin R. Fenster
1991-07-03 16:59 ` Dietmar Weis
1991-07-06 18:16 ` Tony Carrato
1991-07-09 13:30 ` Leonard J. Peirce [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