CVS update: samba/source/include
Jeremy Allison
jra at samba.org
Tue Oct 16 18:34:03 GMT 2001
On Wed, Oct 17, 2001 at 02:15:52AM +0200, Jean Francois Micouleau wrote:
>
> On Tue, 16 Oct 2001, Jeremy Allison wrote:
>
> > Also, I'm not sure about the use of pause(), I think this needs
> > to be a POSIX sigwait(), but I'll look into that.
>
> my man 2 pause says: CONFORMING TO : SVr4, SVID, POSIX, X/OPEN, BSD 4.3
>
> but you can change it to sigwait().
>
> 1) anyway it's a bit rough yet, I'll change the snum to the printername as
> the snum is not constant across smbd process (think includes in smb.conf).
> And there are place that need immediate lpq status.
>
> 2) I'll change the pause() to a sleep(lpq_timeout) and add some code to
> periodically check the lpq status if we have been asked to. In the spoolss
> open_printer() I'll add a message_send_pid(lpq_backend, MSG_PRINTER_POOL);
>
> So we'll poll lpq status ;-)
We also need to periodically re-load the smb.conf file as
the printer name may have been added after smbd started.
But this isn't too bad, we can trigger that to be done once
a printer name is not found.
Jeremy.
More information about the samba-technical
mailing list