mirror of
https://github.com/jorisvink/kore
synced 2025-03-09 12:39:01 -04:00
use handler function name if available when logging a worker process that has died.
This commit is contained in:
parent
95bacb5690
commit
649e81afd7
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user