spawn-pipe: Use posix_spawn by default on native Windows.
commit1504c11f8a5cca19eae97afb71644a4123c343ab
authorBruno Haible <bruno@clisp.org>
Fri, 25 Dec 2020 01:16:22 +0000 (25 02:16 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 25 Dec 2020 01:18:55 +0000 (25 02:18 +0100)
tree9b233eca3dc5d0711c7ca81d9830aca67edc9a0d
parent8fede4db2de4fd41ddf7e57b2d2c0e23f5deef67
spawn-pipe: Use posix_spawn by default on native Windows.

* lib/spawn-pipe.c (SPAWN_PIPE_IMPL_AVOID_POSIX_SPAWN): New macro.
(create_pipe): Use it to decide among the two possible implementations.
* modules/spawn-pipe (Depends-on): Add posix_spawnattr_setpgroup.
ChangeLog
lib/spawn-pipe.c
modules/spawn-pipe