Bug 10070 - double copy of lpd
Summary: double copy of lpd
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: lpr
Version: 6.1
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bernhard Rosenkraenzer
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-03-08 19:00 UTC by Levente
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2000-05-02 13:57:53 UTC
Embargoed:


Attachments (Terms of Use)

Description Levente 2000-03-08 19:00:52 UTC
The default lpd is running double copy of itself. If I kill both of them
and restart by using /etc/rc.d/init.d/lpr start, it happens again.
This is only a part of the story since lpd doesn't work at all.
I use it with a remote printer with a fixed IP number.
I can delete the full printer record and rewrite it again by using
printool (deleting /var/spool/lpd/lp...), restarting it with no effect.
I don't know how to debug the problem but I guess there must be something
inherent either in deamon script or lpr

Levente Torok

Comment 1 Jeff Johnson 2000-03-10 14:25:59 UTC
A new instance of lpd is fork'ed for every print request.
What does "lpc status" say when you see the problem?

Comment 2 grtodd 2000-04-27 21:49:59 UTC
I think 10070 depends on 9084.  Clearing the queue seems to fix things for me
with various versions of the lpr "component". I'm not sure if clearing the print
queue on a reboot is "the right thing to do" in Unix networking - clearing the
mail queue sure wouldn't be!

Comment 3 paul.knowles 2000-05-02 13:57:59 UTC
This `double copy' seems to be the way that lpd verifies the contents of the
printcap file.  BUT, if there is one inaccessable remote printer in the printcap
file, the spanned lpd process looking for the remote printer blocks and never
returns to the parent.  Just kill the process that is in the state nanosleep (do
a ps on the two process numbers, one will be wait4, the other nanos).   After
this kill, all the printers in the printcap file seem to be correctly behaved.

Comment 4 Bernhard Rosenkraenzer 2000-06-16 10:18:37 UTC
This is fixed in the current version.


Note You need to log in before you can comment on or make changes to this bug.