Open braibant opened 9 years ago
I can solve this issue using Lwt_unix.system, or the like, but I would really like to know what is going wrong here.
IIRC Lwt_process
already does a waitpid
. Multiple waitpid
might just not be possible on windows.
Instead of calling manually waitpid worker#pid
you should use worker#status
(might be a different method name) which does the same thing.
Hi,
I have an example of code that runs perfectly fine on Linux and is broken on Windows. A simplified version of the code is the following one.
On Linux, jobs are properly created and there are never more than
cores
jobs running at once. On Windows, all the jobs are launched at once and then, I get a Bad file descriptor (waitpid) error. What could be going wrong?