[go: up one dir, main page]

Use posix_spawn instead of fork+exec, if available

Using posix_spawn() instead of fork()+exec() is more efficient and may improve portability in some cases. The fork()+exec() model has to be retained as a fallback though, since posix_spawn() is marked as optional in the POSIX spec.