From: Alan T. DeKok Date: Tue, 23 May 2017 20:54:24 +0000 (-0400) Subject: name the talloc context for each network / worker X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fee7bce2f698ccc99fa1eb4b741be201be12afe5;p=thirdparty%2Ffreeradius-server.git name the talloc context for each network / worker --- diff --git a/src/lib/io/schedule.c b/src/lib/io/schedule.c index 2e87aad883a..ea759af17dc 100644 --- a/src/lib/io/schedule.c +++ b/src/lib/io/schedule.c @@ -202,7 +202,7 @@ static void *fr_schedule_worker_thread(void *arg) fr_log(sc->log, L_INFO, "Worker %d starting\n", sw->id); - ctx = talloc_init("worker"); + ctx = talloc_init("worker %d", sw->id); if (!ctx) { fr_log(sc->log, L_ERR, "Worker %d - Failed allocating memory", sw->id); goto fail; @@ -303,9 +303,9 @@ static void *fr_schedule_network_thread(void *arg) fr_schedule_t *sc = sn->sc; fr_schedule_child_status_t status = FR_CHILD_FAIL; - fr_log(sc->log, L_INFO, "Network starting\n"); + fr_log(sc->log, L_INFO, "Network %d starting\n", sn->id); - ctx = talloc_init("network"); + ctx = talloc_init("network %d", sn->id); if (!ctx) { fr_log(sc->log, L_ERR, "Network %d - Failed allocating memory", sn->id); goto fail;