]> git.eshelyaron.com Git - emacs.git/commit
Use posix_spawn if possible.
authorPhilipp Stephani <phst@google.com>
Fri, 25 Dec 2020 10:39:09 +0000 (11:39 +0100)
committerPhilipp Stephani <phst@google.com>
Fri, 25 Dec 2020 11:17:32 +0000 (12:17 +0100)
commit2c79a8f9210db01c86b0e5f236adeb0509519d30
treedd8993aedfdbb54cb8d7337fcf64a0417b9ff0ab
parent3ba34141da77a24c251ee6530f3f72a366fe556e
Use posix_spawn if possible.

posix_spawn is less error-prone than vfork + execve, and can make
better use of system-specific enhancements like 'clone' on Linux.  Use
it if we don't need to configure a pseudoterminal.

* src/Makefile.in (LIB_POSIX_SPAWN): New variable.
(LIBES): Use it.

* src/callproc.c (emacs_spawn): Use posix_spawn on Unix-like system if
we don't need to set up a pseudoterminal.
src/Makefile.in
src/callproc.c