diff options
author | Andrew Tridgell <tridge@samba.org> | 2002-04-13 00:58:04 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2002-04-13 00:58:04 +0000 |
commit | 45b291b851834f4c4dffb1a2eb8d5afd53d5823d (patch) | |
tree | edfeb0848cd21f17bc3e72dd96b3b4063ead9529 /source3/printing | |
parent | d621bf11ea8a2bb2ada2953c9d2c5d1b47041286 (diff) | |
download | samba-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.c | 5 |
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); + } } /**************************************************************************** |