3 ms·
Forks on windows works in ocaml?
by andi999 5y ago
Forks on windows works in ocaml?
- yawaramin 5y agoNope, but you can use Unix.create_process. Which is admittedly not as convenient, but that's Windows for you.
- pjmlp 5y agofork() if a POSIX thing, and Windows is not the only non-POSIX OS around. Also fork() doesn't work consistenly across POSIX implementations regarding threads and signals.
- yawaramin 5y agoBut the OCaml documentation for 'Unix.fork' says that it's not implemented on Windows. It doesn't mention any other OS.
- pjmlp 5y agoI don't care about OCaml documentation, my point was about "Which is admittedly not as convenient, but that's Windows for you.", and UNIX versus other platforms in general.