summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2011-08-10 15:23:20 -0400
committerSimo Sorce <idra@samba.org>2011-08-21 09:05:03 -0400
commit23e7e1c15862070b2296b9f24eb5b7e70f2058c4 (patch)
tree9795aa869770bb7698ff380dd3baabf57bf51867 /source3/printing
parent11cbe24ac8415bdddef6d2c67cacc578cea850ad (diff)
downloadsamba-23e7e1c15862070b2296b9f24eb5b7e70f2058c4.tar.gz
samba-23e7e1c15862070b2296b9f24eb5b7e70f2058c4.tar.bz2
samba-23e7e1c15862070b2296b9f24eb5b7e70f2058c4.zip
s3-rpc_server: Replace RPC_SERVICE_MODE_DAEMON checks
Use rpc_daemon_type() macros where appropriate instead. Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Simo Sorce <idra@samba.org>
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/queue_process.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/printing/queue_process.c b/source3/printing/queue_process.c
index 9039e5cd08..bd26b02031 100644
--- a/source3/printing/queue_process.c
+++ b/source3/printing/queue_process.c
@@ -29,7 +29,7 @@
#include "serverid.h"
#include "locking/proto.h"
#include "smbd/proto.h"
-#include "rpc_server/rpc_service_setup.h"
+#include "rpc_server/rpc_config.h"
#include "printing/load.h"
extern pid_t start_spoolssd(struct event_context *ev_ctx,
@@ -317,7 +317,6 @@ bool printing_subsystem_init(struct tevent_context *ev_ctx,
bool start_daemons,
bool background_queue)
{
- enum rpc_service_mode_e spoolss_mode = rpc_spoolss_mode();
pid_t pid = -1;
if (!print_backend_init(msg_ctx)) {
@@ -326,7 +325,7 @@ bool printing_subsystem_init(struct tevent_context *ev_ctx,
/* start spoolss daemon */
/* start as a separate daemon only if enabled */
- if (start_daemons && spoolss_mode == RPC_SERVICE_MODE_DAEMON) {
+ if (start_daemons && rpc_spoolss_daemon() == RPC_DAEMON_FORK) {
pid = start_spoolssd(ev_ctx, msg_ctx);