s3-printing: reload shares after pcap cache fill
commit04248c2cfaa5a1728ef58fc8ca231fd1309ca694
authorDavid Disseldorp <ddiss@suse.de>
Sun, 19 Dec 2010 18:52:08 +0000 (19 19:52 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 7 Jan 2011 23:37:39 +0000 (7 15:37 -0800)
tree81e3be76291d3fdbf5f1e29869c6ef82f7305193
parent3a14c97459ea21f4a3ecefabfd676cb9839a162f
s3-printing: reload shares after pcap cache fill

Since commit eada8f8a, updates to the cups pcap cache are performed
asynchronously - cups_cache_reload() forks a child process to request
cups printer information and notify the parent smbd on completion.

Currently printer shares are reloaded immediately following the call to
cups_cache_reload(), this occurs prior to smbd receiving new cups pcap
information from the child process. Such behaviour can result in stale
print shares as outlined in bug 7836.

This fix ensures print shares are only reloaded after new pcap data has
been received.

Pair-Programmed-With: Lars Müller <lars@samba.org>
source3/include/proto.h
source3/printing/load.c
source3/printing/pcap.c
source3/printing/pcap.h
source3/printing/print_cups.c
source3/smbd/process.c
source3/smbd/server.c
source3/smbd/server_reload.c
source3/web/swat.c