diff options
author | Volker Lendecke <vl@samba.org> | 2021-11-28 20:29:26 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2021-12-10 14:02:30 +0000 |
commit | 9e3ee8c40c012ef6febe1737d952a744b0b14861 (patch) | |
tree | 3f968d3ca86592f59106568ff8807486b5d8f59c /source3/printing | |
parent | a7c65958a15149918415b7456d6f20ee8c9669d2 (diff) | |
download | samba-9e3ee8c40c012ef6febe1737d952a744b0b14861.tar.gz |
printing: Remove "start_daemons" from printing_subsystem_init()
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/printing')
-rw-r--r-- | source3/printing/queue_process.c | 25 | ||||
-rw-r--r-- | source3/printing/queue_process.h | 3 |
2 files changed, 2 insertions, 26 deletions
diff --git a/source3/printing/queue_process.c b/source3/printing/queue_process.c index 5c7554d9193..3b0ef55c3cc 100644 --- a/source3/printing/queue_process.c +++ b/source3/printing/queue_process.c @@ -416,8 +416,7 @@ fail: /* Run before the parent forks */ bool printing_subsystem_init(struct tevent_context *ev_ctx, struct messaging_context *msg_ctx, - struct dcesrv_context *dce_ctx, - bool start_daemons) + struct dcesrv_context *dce_ctx) { pid_t pid = -1; @@ -425,28 +424,6 @@ bool printing_subsystem_init(struct tevent_context *ev_ctx, return false; } - /* start spoolss daemon */ - /* start as a separate daemon only if enabled */ - if (!start_daemons) { - bool ret; - struct bq_state *state; - - state = talloc_zero(NULL, struct bq_state); - if (state == NULL) { - exit(1); - } - state->ev = ev_ctx; - state->msg = msg_ctx; - - ret = printing_subsystem_queue_tasks(state); - - /* Publish nt printers, this requires a working winreg pipe */ - pcap_cache_reload(ev_ctx, msg_ctx, - delete_and_reload_printers_full); - - return ret; - } - pid = start_background_queue(NULL, NULL, NULL); if (pid == -1) { return false; diff --git a/source3/printing/queue_process.h b/source3/printing/queue_process.h index a41e0426cf3..93bc79ff879 100644 --- a/source3/printing/queue_process.h +++ b/source3/printing/queue_process.h @@ -27,8 +27,7 @@ struct dcesrv_context; bool printing_subsystem_init(struct tevent_context *ev_ctx, struct messaging_context *msg_ctx, - struct dcesrv_context *dce_ctx, - bool start_daemons); + struct dcesrv_context *dce_ctx); pid_t start_background_queue(struct tevent_context *ev, struct messaging_context *msg, char *logfile); |