I played a bit tonight, and although I still did not find
why control file is not found in cleanup,
I think I know what happens with left over child processes.
cleanup passes SIGINT signal to Killchildren() which should kill
the children of (Worker - Print) lpd subprocess.
However the bash script which is my filter seems to just ignore SIGINT
(I tried sending it by hand)
> I myself wrote two day ago:
> >
> > Hi,
> >
> > I just decide to switch from regular lpr to LPRng, and
> > installed LPRng-3.6.24-1 from RPM.
> > For now I have left RedHat filtering system (rhs-printfilters)
> > although updated it to the latest from rawhide which does mention
> > LPRng compatibility. This is probably the origin of my problem,
> > but I wanted to avoid ifhp for now, since I have some custom
> > converters working under rhs-printfilters.
> >
> > Anyway, lpr from LPRng woks just fine.
> > What fails is lprm.
> >
> >
> > > lprm 672
> > Printer lp@polarbear:
> > checking perms 'dima@polarbear+672'
> > dequeued 'dima@polarbear+672'
> >
> > > lpq
> > Printer: lp@polarbear '360x360'
> > Queue: no printable jobs in queue
> > Status: removing job '<NULL>' - ABORT at 00:16:39.012
> > Filter_status: lp is ready and printing
> >
> > Or in more detail from tail /var/spool/lpd/lp/lpq.0 the whole session
> > is
> > Status: subserver pid 1675 starting at 00:15:44.044
> > Status: accounting at start at 00:15:44.055
> > Status: opening device '/dev/lp0' at 00:15:44.056
> > Status: printing job 'dima@polarbear+672' at 00:15:44.419
> > Status: processing 'dfA672polarbear.homenet', size 3486, format 'f', IF
> > filter 'filter' at 00:15:44.419
> > Status: subserver pid 1675 exit status 'JABORT' at 00:16:39.012
> > Status: job '<NULL>' error 'no control file <NULL> - No such file or
> > directory' at 00:16:39.012
> > Status: removing job '<NULL>' - ABORT at 00:16:39.012
> > Filter_status: lp is ready and printing
> >
> > At this stage, I see that my filter process and it's child is not killed
> > and is still running.
> >
> > > ps -efww
> > daemon 1683 1 0 00:15 ? 00:00:00 bash
> > /var/spool/lpd/lp/filter -Adima@polarbear+672 -CA
> > -D2000-09-05-00:15:44.029 -Ff -Hpolarbear.homenet -Jcover.ps -Ncover.ps
> > -Plp -Qlp -aacct -b3486 -d/var/spool/lpd/lp -edfA672polarbear.homenet
> > -fcover.ps -hpolarbear.homenet -j672 -kcfA672polarbear.homenet -l66
> > -ndima -sstatus -t2000-09-05-00:15:44.000 -w80 -x0 -y0 acct
> > daemon 1705 1683 0 00:15 ? 00:00:00 sh
> > /usr/lib/rhs/rhs-printfilters//ps-to-printer.fpi
> > daemon 1707 1705 0 00:15 ? 00:00:00 gs -q @stc600pl.upp
> > -sPAPERSIZE=letter -sOutputFile=-
> >
>-I/usr/share/fonts/cyrillic/Type1:/usr/share/fonts/cyrillic/T1fromTTF:/usr/share/fonts/cyrillic/TrueType
> >
-----------------------------------------------------------------------------
If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body. For the impatient,
to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED]
with: | example:
subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED]
If you have major problems, send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------