Skip to content

Commit

Permalink
fix(lev-fiber): fd leak when running scheduler (#95)
Browse files Browse the repository at this point in the history
Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
  • Loading branch information
rgrinberg committed May 12, 2024
1 parent b1be221 commit a4e2f99
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 a4e2f99

Please sign in to comment.