about summary refs log tree commit diff
path: root/src/process/fdop.h
Commit message (Collapse)AuthorAgeFilesLines
* add posix_spawn [f]chdir file actionsRich Felker2019-08-301-0/+2
| | | | | | | these are presently extensions, thus named with _np to match glibc and other implementations that provide them; however they are likely to be standardized in the future without the _np suffix as a result of Austin Group issue 1208. if so, both names will be kept as aliases.
* overhaul posix_spawn to use CLONE_VM instead of vforkRich Felker2013-02-031-1/+1
| | | | | | | | | | | | | | | | | | | | | the proposed change was described in detail in detail previously on the mailing list. in short, vfork is unsafe because: 1. the compiler could make optimizations that cause the child to clobber the parent's local vars. 2. strace is buggy and allows the vforking parent to run before the child execs when run under strace. the new design uses a close-on-exec pipe instead of vfork semantics to synchronize the parent and child so that the parent does not return before the child has finished using its arguments (and now, also its stack). this also allows reporting exec failures to the caller instead of giving the caller a child that mysteriously exits with status 127 on exec error. basic testing has been performed on both the success and failure code paths. further testing should be done.
* fix backwards posix_spawn file action orderRich Felker2011-05-291-1/+1
|
* add accidentally-omitted file needed for posix_spawn file actionsRich Felker2011-05-281-0/+10