kore

An easy to use, scalable and secure web application framework for writing web APIs in C.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 49b77d3b0e0726f3be51078f519d3f57c8ff6d25
parent 276d8c5a82bb90c4530ffaf3bb55a022621dd390
Author: Joris Vink <joris@coders.se>
Date:   Tue,  4 Jun 2013 17:04:28 +0200

better proctitles

Diffstat:
src/kore.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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");