]> git.eshelyaron.com Git - emacs.git/commit
Import posix_spawn from Gnulib.
authorPhilipp Stephani <phst@google.com>
Fri, 25 Dec 2020 10:33:02 +0000 (11:33 +0100)
committerPhilipp Stephani <phst@google.com>
Fri, 25 Dec 2020 10:54:02 +0000 (11:54 +0100)
commit3ba34141da77a24c251ee6530f3f72a366fe556e
tree66b28a4a122d20ca29548c8894fba2c6fa4645f3
parent42d58264db165d265cba68d6dbebc53a50738355
Import posix_spawn from Gnulib.

posix_spawn is less error-prone than vfork + exec, and can make use of
system-specific optimizations like `clone' on Linux.  Import Gnulib
replacement so that we can use recent additions like
`posix_spawn_file_actions_addchdir'.

The only manual change are to admin/merge-gnulib and .gitignore.  All
other changes are due to rerunning merge-gnulib.

* admin/merge-gnulib (GNULIB_MODULES): Add posix_spawn-related
modules.
* .gitignore: Add new generated files.
27 files changed:
.gitignore
admin/merge-gnulib
lib/gnulib.mk.in
lib/sched.in.h [new file with mode: 0644]
lib/spawn.c [new file with mode: 0644]
lib/spawn.in.h [new file with mode: 0644]
lib/spawn_faction_addchdir.c [new file with mode: 0644]
lib/spawn_faction_adddup2.c [new file with mode: 0644]
lib/spawn_faction_destroy.c [new file with mode: 0644]
lib/spawn_faction_init.c [new file with mode: 0644]
lib/spawn_int.h [new file with mode: 0644]
lib/spawnattr_destroy.c [new file with mode: 0644]
lib/spawnattr_init.c [new file with mode: 0644]
lib/spawnattr_setdefault.c [new file with mode: 0644]
lib/spawnattr_setflags.c [new file with mode: 0644]
lib/spawnattr_setpgroup.c [new file with mode: 0644]
lib/spawnattr_setsigmask.c [new file with mode: 0644]
lib/spawni.c [new file with mode: 0644]
lib/strchrnul.c [new file with mode: 0644]
lib/strchrnul.valgrind [new file with mode: 0644]
m4/gnulib-comp.m4
m4/posix_spawn.m4 [new file with mode: 0644]
m4/posix_spawn_faction_addchdir.m4 [new file with mode: 0644]
m4/sched_h.m4 [new file with mode: 0644]
m4/sh-filename.m4 [new file with mode: 0644]
m4/spawn_h.m4 [new file with mode: 0644]
m4/strchrnul.m4 [new file with mode: 0644]