#include "ldb_wrap.h"
#include "lib/util/tfork.h"
#include "lib/messaging/irpc.h"
+#include "lib/util/util_process.h"
#define min(a, b) (((a) < (b)) ? (a) : (b))
pid = getpid();
setproctitle("task[%s] pre-fork master", service_name);
+ /*
+ * We must fit within 15 chars of text or we will truncate, so
+ * we put the constant part last
+ */
+ prctl_set_comment("%s[master]", service_name);
/*
* this will free all the listening sockets and all state that
setproctitle("task[%s] pre-forked worker(%d)",
service_name,
pd->instances);
+ /*
+ * We must fit within 15 chars of text or we will truncate, so
+ * we put child number last
+ */
+ prctl_set_comment("%s(%d)",
+ service_name,
+ pd->instances);
prefork_reload_after_fork();
if (service_details->post_fork != NULL) {
service_details->post_fork(task, pd);
#include "lib/messaging/messaging.h"
#include "lib/util/debug.h"
#include "source3/lib/messages_dgm.h"
+#include "lib/util/util_process.h"
static unsigned connections_active = 0;
static unsigned smbd_max_processes = 0;
pid = getpid();
setproctitle("task[%s] standard worker", proc_ctx->name);
+ /*
+ * We must fit within 15 chars of text or we will truncate, so
+ * we put the constant part last
+ */
+ prctl_set_comment("%s[work]", proc_ctx->name);
+
/* This is now the child code. We need a completely new event_context to work with */
if (tevent_re_initialise(ev) != 0) {
}
setproctitle("task[%s]", service_name);
+ /*
+ * We must fit within 15 chars of text or we will truncate, so
+ * we put the constant part last
+ */
+ prctl_set_comment("%s[task]", service_name);
/*
* Set up the process context to be passed through to the terminate