From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,e3fac710b9becb8b X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1991-07-09 10:43:54 PST Path: gmdzi!unido!mcsun!uunet!elroy.jpl.nasa.gov!usc!wuarchive!gumby!peirce From: peirce@gumby.cc.wmich.edu (Leonard J. Peirce) Newsgroups: comp.sys.dec Subject: Re: Ultrix 4.1 and printers on LAT terminal servers Message-ID: <1991Jul9.133037.20154@gumby.cc.wmich.edu> Date: 9 Jul 91 13:30:37 GMT References: <1991Jun28.212730.14833@cec1.wustl.edu> <2456@netmbx.UUCP> <35@mhinfo.UUCP> Organization: Western Michigan University Academic Computing Services 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