[prev in list] [next in list] [prev in thread] [next in thread] 

List:       netbsd-port-i386
Subject:    Re: lpd setup
From:       "Greg A. Woods" <woods () weird ! com>
Date:       2006-12-18 0:33:55
Message-ID: m1Gw6S6-001dGHC () most ! weird ! com
[Download RAW message or body]


At Fri, 15 Dec 2006 11:34:32 +0100,
Hauke Fath wrote:
> 
> Am 14.12.2006 um 13:54 Uhr -0500 schrieb Greg A. Woods:
> >I did find that with a local printer that didn't use any printer device,
> >e.g. when using appletalk via the netatalk PAP tools, then specifying
> >"lp=/dev/null" was the best way to avoid problems with device opening.
> 
> Back when I set up stuff like that, lpd(8) tried an exclusive open on 
> the null device file, and you needed to mknod a private null per 
> printer. Has this changed, and when?

I've never noticed a problem, and I've had "lp=/dev/null" in the
main printcap entry on my main file server and development server for
several years now, starting in 1.3 I think it was.

So far as I can see the opentty() routine in lpr/lpd/printjob.c (and
openpr() in much earlier versions) has always just used either O_RDRW or
O_WRONLY when it actually opens the device.  Also so far as I can see
the only file ever locked is the "lo" file, normally "lock" in the "sd"
directory.

The only time I've ever seen exclusive-open issues with printer
configurations on *BSD is when the "lp" device is one which only allows
one process to open it at a time and when something else also tries to
open the same device, e.g. a poorly designed filter, or a getty, etc.

-- 
						Greg A. Woods

H:+1 416 218-0098 W:+1 416 489-5852 x122 VE3TCP RoboHack <woods@robohack.ca>
Planix, Inc. <woods@planix.com>       Secrets of the Weird <woods@weird.com>

[Attachment #3 (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic