Gerald Carter gcarter at valinux.com
Tue Aug 15 14:29:04 GMT 2000

Andrew Tridgell wrote:
> > The spoolss_notify_cjobs() (called as a result of
> > api_spoolss_rfnpcnex()) forks and waits for the child
> > to exit.  However, when the printer is unable (remote one
> > of course) the child hangs until it times out.
> >
> > I'm working on the code, but if someone has a
> > quick fix....let me know.
> Gerald, this has been a problem with printing in Samba 
> for years, well before we added spoolss
> I think we now have the infrastructure to do something 
> a little better. We now have an internal print queue 
> database in Samba, which means we have accurate and immediate 
> info on all printing actions taken by SMB clients. What we 
> could do is not call out to lpq synchronously like we 
> currently do, but instead fork a child to call lpq and get 
> the child to update the print database. The parent would
> just return whatever info it currently has and let the 
> child update the print database when it can.

I like this idea.  While the problem may have existed for a 
while, the problems created with the addition of the SPOOLSS 
support, seem to elevate its importance.

   /\  Gerald (Jerry) Carter                     Professional Services
 \/    http://www.valinux.com  VA Linux Systems    gcarter at valinux.com
       http://www.samba.org       SAMBA Team           jerry at samba.org

       "...a hundred billion castaways looking for a home."
                                - Sting "Message in a Bottle" ( 1979 )

More information about the samba-technical mailing list