Project: mesos
Issue MESOS-5049: Refactore subproces setup functions.
Executing arbitrary setup functions while creating new processes is dangerous as all functions called have to be async safe. As setup functions are used for only very few purposes (setsid, chdir, monitoring and killing a process (see upcoming review) it makes sense to support them safely via parameters to subprocess. Another common use of child setup are is to block the child while doing some work in the parent. This pattern can be more cleanly expressed with parentHooks.
Story points: 3