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 on the Web. The posix_spawn()
manual provides details. However, it is still not sufficient especially for beginners. » Read more