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

split: prefer posix_spawn to fork and execl

* NEWS: Mention the change.
* bootstrap.conf (gnulib_modules): Add posix_spawn,
posix_spawnattr_setsigdefault, posix_spawn_file_actions_addclose,
posix_spawn_file_actions_adddup2, and posix_spawn_file_actions_init.
* src/split.c: Include spawn.h.
(create): Use posix_spawn instead of fork and execl.
This commit is contained in:
Collin Funk
2025-10-23 01:11:50 -07:00
parent 1dabab7027
commit ca8b928665
3 changed files with 65 additions and 37 deletions

View File

@@ -213,9 +213,14 @@ gnulib_modules="
pipe-posix
pipe2
posix-shell
posix_spawn
posix_spawnattr_destroy
posix_spawnattr_init
posix_spawnattr_setflags
posix_spawnattr_setsigdefault
posix_spawn_file_actions_addclose
posix_spawn_file_actions_adddup2
posix_spawn_file_actions_init
posix_spawnp
posixtm
posixver