]> git.ipfire.org Git - thirdparty/make.git/commit
[SV 57022] Avoid posix_spawn which fails asynchronously
authorPaul Smith <psmith@gnu.org>
Fri, 27 Dec 2019 06:27:09 +0000 (01:27 -0500)
committerPaul Smith <psmith@gnu.org>
Fri, 27 Dec 2019 06:37:17 +0000 (01:37 -0500)
commite64674b718600bd4fad0b5ac1cc37eb89fba5ef7
tree7bb82458a418fdf9b3af48954b76e0bbdddc29d4
parent564fb212a727a6b6773f454d192a7e02de62d2ef
[SV 57022] Avoid posix_spawn which fails asynchronously

Avoid using posix_spawn implementations that fail asynchronously when
the spawned program can't be invoked: this means instead of getting
an error such as "No such file or directory" we get just "Exit 127".

Original implementation of the configure.ac macro provided by
Martin Dorey <martin.dorey@hds.com>

Original implementation of the regression tests provided by
Dmitry Goncharov <dgoncharov@users.sf.net>

* configure.ac: Test whether posix_spawn fails asynchronously.  In a
cross-compilation environment, assume that it does not.  If we detect
that it does, fall back to fork/exec.
* tests/scripts/features/exec: Add regression tests for different
shebang invocation methods.
configure.ac
tests/scripts/features/exec [new file with mode: 0644]