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 649e81afd77d356ab33b60ed1be3cd43c9332772
parent 95bacb56903b0128fda5326bbb7e515830c80467
Author: Joris Vink <joris@coders.se>
Date:   Sun,  7 Jul 2013 14:56:50 +0200

use handler function name if available when logging a worker process that has died.

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

diff --git a/src/worker.c b/src/worker.c @@ -326,8 +326,10 @@ kore_worker_wait(int final) if (WEXITSTATUS(status) || WTERMSIG(status) || WCOREDUMP(status)) { kore_log(LOG_NOTICE, - "worker %d (pid: %d) (hdlr: %p) gone", - kw->id, kw->pid, kw->active_hdlr); + "worker %d (pid: %d) (hdlr: %s) gone", + kw->id, kw->pid, + (kw->active_hdlr != NULL) ? kw->active_hdlr->func : + "none"); if (kw->pid == accept_lock->lock) accept_lock->lock = accept_lock->next;