1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-02-10 01:12:02 +02:00

timeout: use the more efficient posix_spawn to invoke the command

* NEWS: Mention the improvement. Consolidate the posix_spawn
improvements into one item.
* bootstrap.conf (gnulib_modules): Add posix_spawnattr_setsigmask.
* src/timeout.c: Include spawn.h.
(main): Setup signals using a posix_spawnattr_t object. Use posix_spawn
instead of fork and execvp.
This commit is contained in:
Collin Funk
2025-10-26 15:33:24 -07:00
parent ffa2632dcd
commit dac96ce3e3
3 changed files with 28 additions and 26 deletions

View File

@@ -218,6 +218,7 @@ gnulib_modules="
posix_spawnattr_init
posix_spawnattr_setflags
posix_spawnattr_setsigdefault
posix_spawnattr_setsigmask
posix_spawn_file_actions_addclose
posix_spawn_file_actions_adddup2
posix_spawn_file_actions_destroy