Skip to content

Commit 1a0a88d

Browse files
committed
Run exit hooks before Unix.exec'ing
Signed-off-by: Rudi Grinberg <[email protected]>
1 parent b9d4a0d commit 1a0a88d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ Unreleased
5151
- Workaround incorrect exception raised by Unix.utimes (OCaml PR#8857) in
5252
Path.touch on Windows (#4223, @dra27)
5353

54+
- Cleanup temporary files after running `$ dune exec`. (#4260, fixes #4243,
55+
@rgrinberg)
56+
5457
2.8.2 (21/01/2021)
5558
------------------
5659

src/stdune/proc.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@ let restore_cwd_and_execve prog argv ~env =
1313
| WSTOPPED _ -> assert false
1414
else (
1515
ignore (Unix.sigprocmask SIG_SETMASK [] : int list);
16+
Stdlib.do_at_exit ();
1617
Unix.execve prog argv env
1718
)

0 commit comments

Comments
 (0)