diff options
Diffstat (limited to 'source3/printing')
-rw-r--r-- | source3/printing/queue_process.c | 3 | ||||
-rw-r--r-- | source3/printing/spoolssd.c | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/source3/printing/queue_process.c b/source3/printing/queue_process.c index 1ca186e29f..bc6c33f9a8 100644 --- a/source3/printing/queue_process.c +++ b/source3/printing/queue_process.c @@ -23,6 +23,7 @@ #include "includes.h" #include "smbd/globals.h" #include "include/messages.h" +#include "lib/util/util_process.h" #include "printing.h" #include "printing/pcap.h" #include "printing/queue_process.h" @@ -286,6 +287,8 @@ pid_t start_background_queue(struct tevent_context *ev, smb_panic("reinit_after_fork() failed"); } + prctl_set_comment("lpqd"); + bq_reopen_logs(logfile); bq_setup_sig_term_handler(); bq_setup_sig_hup_handler(ev, msg_ctx); diff --git a/source3/printing/spoolssd.c b/source3/printing/spoolssd.c index db303a1b0b..464d12bf99 100644 --- a/source3/printing/spoolssd.c +++ b/source3/printing/spoolssd.c @@ -20,6 +20,8 @@ #include "serverid.h" #include "smbd/smbd.h" +#include "lib/util/util_process.h" + #include "messages.h" #include "include/printing.h" #include "printing/nt_printing_migrate_internal.h" @@ -293,6 +295,8 @@ static bool spoolss_child_init(struct tevent_context *ev_ctx, smb_panic("reinit_after_fork() failed"); } + prctl_set_comment("spoolssd-child"); + spoolss_child_id = child_id; spoolss_reopen_logs(child_id); @@ -670,6 +674,8 @@ pid_t start_spoolssd(struct tevent_context *ev_ctx, smb_panic("reinit_after_fork() failed"); } + prctl_set_comment("spoolssd-master"); + /* save the parent process id so the children can use it later */ parent_id = messaging_server_id(msg_ctx); |