Skip to content

Commit

Permalink
Run exit hooks before Unix.exec'ing
Browse files Browse the repository at this point in the history
Signed-off-by: Rudi Grinberg <[email protected]>
  • Loading branch information
rgrinberg committed Feb 19, 2021
1 parent b9d4a0d commit 5d6bab2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ Unreleased
- Workaround incorrect exception raised by Unix.utimes (OCaml PR#8857) in
Path.touch on Windows (#4223, @dra27)

- Cleanup temporary files after running `$ dune exec`. (#.., fixes #4243,
@rgrinberg)

2.8.2 (21/01/2021)
------------------

Expand Down
1 change: 1 addition & 0 deletions src/stdune/proc.ml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ let restore_cwd_and_execve prog argv ~env =
| WSTOPPED _ -> assert false
else (
ignore (Unix.sigprocmask SIG_SETMASK [] : int list);
Stdlib.do_at_exit ();
Unix.execve prog argv env
)

0 comments on commit 5d6bab2

Please sign in to comment.