summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-04-13 00:58:04 +0000
committerAndrew Tridgell <tridge@samba.org>2002-04-13 00:58:04 +0000
commit45b291b851834f4c4dffb1a2eb8d5afd53d5823d (patch)
treeedfeb0848cd21f17bc3e72dd96b3b4063ead9529 /source3/printing
parentd621bf11ea8a2bb2ada2953c9d2c5d1b47041286 (diff)
downloadsamba-45b291b851834f4c4dffb1a2eb8d5afd53d5823d.tar.gz
samba-45b291b851834f4c4dffb1a2eb8d5afd53d5823d.tar.bz2
samba-45b291b851834f4c4dffb1a2eb8d5afd53d5823d.zip
when background printing wasn't enabled printing was completely broken
as the pid was 0 (This used to be commit f16033635f5125758a3d2c3b0780d5bd2bd7bdbd)
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/printing.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/printing/printing.c b/source3/printing/printing.c
index ad5acb1505..a28d95fcc8 100644
--- a/source3/printing/printing.c
+++ b/source3/printing/printing.c
@@ -536,7 +536,10 @@ update the internal database from the system print queue for a queue
****************************************************************************/
static void print_queue_update(int snum)
{
- message_send_pid(background_lpq_updater_pid, MSG_PRINTER_UPDATE, &snum, sizeof(snum), False);
+ if (background_lpq_updater_pid > 0) {
+ message_send_pid(background_lpq_updater_pid, MSG_PRINTER_UPDATE,
+ &snum, sizeof(snum), False);
+ }
}
/****************************************************************************