posix_spawn
The posix_spawn()
and posix_spawnp()
functions create a new child process from the specified process image constructed from a regular executable file. It can be used to replace the relative complex “fork-exec-wait” methods with fork()
and exec()
. However, compared to fork()
and exec()
, posix_spawn()
is less introduced if you search o