summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2022-05-31 08:35:00 +0200
committerJule Anger <janger@samba.org>2022-06-09 10:03:29 +0000
commit1397656cebf2cdd00a28727ec8f4b65308106440 (patch)
tree2f68966d9be1a9f9e85b8c17cad6a2b6e7df0a34
parent8507fa6fc7daa29746ed81578669070a32bd0427 (diff)
downloadsamba-1397656cebf2cdd00a28727ec8f4b65308106440.tar.gz
s3:printing: Start samba-bgqd as soon as possible
We need some time to fill the printcap cache. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15081 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit ac16351ff5a0c5b46f461c26516b85e8483bba83) Autobuild-User(v4-16-test): Jule Anger <janger@samba.org> Autobuild-Date(v4-16-test): Thu Jun 9 10:03:29 UTC 2022 on sn-devel-184
-rw-r--r--source3/printing/queue_process.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/printing/queue_process.c b/source3/printing/queue_process.c
index c44f60fa20e..6613e8f9f55 100644
--- a/source3/printing/queue_process.c
+++ b/source3/printing/queue_process.c
@@ -423,16 +423,16 @@ bool printing_subsystem_init(struct tevent_context *ev_ctx,
{
pid_t pid = -1;
- if (!print_backend_init(msg_ctx)) {
- return false;
- }
-
pid = start_background_queue(NULL, NULL, NULL);
if (pid == -1) {
return false;
}
background_lpq_updater_pid = pid;
+ if (!print_backend_init(msg_ctx)) {
+ return false;
+ }
+
return true;
}