Commit 8698753
committed
fix(Lwt_utils.mkdir_p): Surround the Lwt_unix.mkdir call with a Lwt.catch guard
Aim: mitigate a TOC/TOU race condition which occurs when
Learnocaml_process_exercise_repository.n_processes > 1,
triggered by a command such as "learn-ocaml build -j 2".
This isn't the only possible fix/workaround, just a concise one
relying on error handling.1 parent 31b5750 commit 8698753
1 file changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
22 | 29 | | |
23 | 30 | | |
24 | 31 | | |
| |||
0 commit comments