From 49b77d3b0e0726f3be51078f519d3f57c8ff6d25 Mon Sep 17 00:00:00 2001 From: Joris Vink Date: Tue, 4 Jun 2013 17:04:28 +0200 Subject: [PATCH] better proctitles --- src/kore.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kore.c b/src/kore.c index f6cff46..86544cf 100644 --- a/src/kore.c +++ b/src/kore.c @@ -128,7 +128,7 @@ main(int argc, char *argv[]) fatal("cannot chdir(): %s", errno_s); kore_worker_init(); - if (prctl(PR_SET_NAME, "[main]")) + if (prctl(PR_SET_NAME, "kore [main]")) kore_debug("cannot set process title"); sig_recv = 0; @@ -542,7 +542,7 @@ kore_worker_entry(struct kore_worker *kw) struct kore_worker *k, *next; int n, i, *fd, quit; - snprintf(buf, sizeof(buf), "[worker %d]", kw->id); + snprintf(buf, sizeof(buf), "kore [wrk %d]", kw->id); if (prctl(PR_SET_NAME, buf) == -1) kore_debug("cannot set process title");