From e2c3fd4f88b095aca492c0df1a278c774b00492d Mon Sep 17 00:00:00 2001 From: David Härdeman Date: Sat, 6 Jun 2020 13:03:55 +0200 Subject: Reparent most tasks to uring --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 69d47ae..1fc0e5d 100644 --- a/main.c +++ b/main.c @@ -155,9 +155,9 @@ dump_tree(struct cfg *cfg) fprintf(stderr, "Dumping Tree\n"); fprintf(stderr, "============\n"); uring_task_refdump(&cfg->task); + uring_refdump(cfg->uev); uring_task_refdump(&cfg->sev->task); announce_refdump(cfg->aev); - uring_refdump(cfg->uev); if (cfg->iev) cfgdir_refdump(cfg->iev); list_for_each_entry(server, &cfg->servers, list) @@ -261,7 +261,7 @@ signalfd_init(struct cfg *cfg) perrordie("eventfd"); fprintf(stderr, "signalfd init: %i\n", sfd); - uring_task_init(&sev->task, "sev", &cfg->task, signalfd_free); + uring_task_init(&sev->task, "sev", uring_parent(cfg), signalfd_free); uring_task_set_fd(&sev->task, sfd); cfg->sev = sev; hack_efd = sfd; -- cgit v1.2.3