Skip to content

Commit

Permalink
fix(lev-fiber): fd leak when running scheduler
Browse files Browse the repository at this point in the history
Signed-off-by: Rudi Grinberg <me@rgrinberg.com>

<!-- ps-id: f08da34a-4de5-4567-a88d-afd946448f11 -->
  • Loading branch information
rgrinberg committed May 12, 2024
1 parent b1be221 commit e1d56a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lev-fiber/src/lev_fiber.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1276,6 +1276,7 @@ let run (type a) ?(sigpipe = `Inherit)
List.iter t.thread_workers ~f:(fun (Worker w) ->
Worker.complete_tasks_and_stop w;
Worker.join w);
Lev.Async.destroy async
Lev.Async.destroy async;
Lev.Loop.destroy lev_loop
in
res

0 comments on commit e1d56a6

Please sign in to comment.