I plan to execute a command in a subprocess from a Lwt Framework (Dream).
I guess, all Unix syscall (fork, pipe…) from the current (father) process should be done from Lwt_unix module, and the Unix syscall from the child process should be done directly from Unix (and avoid scheduling some Lwt promise twice).
Some advices ?
The alternative would be everything in the Unix syscall. Output writes in the pipe would block the whole framework, but in my case, that wouldn’t be long.