- Name
-
vfork_mode
- Default
-
1
- Minimum
-
0
- Maximum
-
2
- Scope
- per-process
This option dictates how vfork()
intercept should work. After a
vfork()
, parent and child still share address space but not file
descriptors. We have to be careful about making changes in the child that can be seen in
the parent. We offer three options here. Different apps might require different options
depending on their use of vfork()
. If using
EF_VFORK_MODE
=2
, it is not safe to create sockets
or pipes in the child before calling exec()
.
-
0
- Old behavior. Replacevfork()
withfork()
-
1
- Replacevfork()
withfork()
and block parent till child exits/execs -
2
- Replacevfork()
withvfork()
.