Y
Hacker News
new
|
ask
|
show
|
jobs
by
jacobvosmaer
3069 days ago
Another nice example is changing the working directory for the new process. With fork+exec, you can do a chdir after fork but before exec. With posix_spawn you're stuck with the working directory of the parent.