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 | f16033635f5125758a3d2c3b0780d5bd2bd7bdbd (patch) | |
tree | 015150a2900977bffe596eb9a66597094c8c2ef2 /source/printing | |
parent | 699a1d9f46fcc9d6aad56ed1b44d1295ee828b2b (diff) | |
download | samba-f16033635f5125758a3d2c3b0780d5bd2bd7bdbd.tar.gz samba-f16033635f5125758a3d2c3b0780d5bd2bd7bdbd.tar.xz samba-f16033635f5125758a3d2c3b0780d5bd2bd7bdbd.zip |
when background printing wasn't enabled printing was completely broken
as the pid was 0
Diffstat (limited to 'source/printing')
-rw-r--r-- | source/printing/printing.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/printing/printing.c b/source/printing/printing.c index ad5acb15052..a28d95fcc8e 100644 --- a/source/printing/printing.c +++ b/source/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); + } } /**************************************************************************** |