Skip to content

Commit

Permalink
fix(lev-fiber): scheduler fd leak (#1257)
Browse files Browse the repository at this point in the history
running the scheduler more than once no longer leaks fd's

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
  • Loading branch information
rgrinberg committed May 12, 2024
1 parent 4718bbe commit 175a6b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion submodules/lev/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 175a6b6

Please sign in to comment.