ocaml-multicore / eio

Effects-based direct-style IO for multicore OCaml
Other
548 stars 66 forks source link

Creating a process group in `Fork_action` (?) #595

Open smondet opened 1 year ago

smondet commented 1 year ago

Would it make sense to (optionally) add calls to setpgid(0,0) before the execve?

I think that would allow for better use of signal to kill entire process groups.

https://pubs.opengroup.org/onlinepubs/9699919799/functions/setpgid.html

talex5 commented 1 year ago

Optional support would be good, yes.