User and network namespaces › A pause fork action [pause-fork-action]

I have dicussed fork actions before. Unfortunately, they model a very simple fork+exec API model. For void, I need to call newuidmap passing in the PID of the child before the child (a) tries to setuid and (b) calls exec!

To cope with this, void comes with a new pause fork action.

val pause : Unix.file_descr -> Eio_unix.Private.Fork_action.t
(** [pause fd] will wait until a single byte is written to [fd] in the child.*)

This mostly works, although it does require changing some of how Eio would spawn a process as it expects certain actions to have run before returning; so I'm not sure how useful that would be to upstream.