bin: prefer posix_spawn over fork+exec

* configure.ac: Test for <spawn.h>.
* bin/common_trans.cc: Use posix_spawn when available.
* NEWS: Mention the change.
* tests/core/ltldo.test: Adjust expected error message.
This commit is contained in:
Alexandre Duret-Lutz 2019-04-14 14:52:26 +02:00
parent 4740adeb09
commit d65ceb0bc8
4 changed files with 174 additions and 62 deletions

View file

@ -141,7 +141,7 @@ fi
AX_CHECK_BUDDY
AC_CHECK_HEADERS([sys/times.h valgrind/memcheck.h])
AC_CHECK_HEADERS([sys/times.h valgrind/memcheck.h spawn.h])
AC_CHECK_FUNCS([times kill alarm sigaction])
LT_CONFIG_LTDL_DIR([ltdl])