Follow-up Comment #1, bug #63070 (project make):
posix_spawn fails to run a child process.
Some versions of glibc (i observed this with glibc-2.17) fail to spawn a
shell
program missing a shbang and return 0 from posix_spawn.
++++
$ ls
hello.sh makefile
$ cat hello.sh
printf "hello, world\n"
$ cat makefile
all:; ./hello.sh
$ # this is make built from master
$ ~/src/make/m64/make
./hello.sh
make: *** [makefile:1: all] Error 127
$ # this is make with the patch applied
$ ~/src/make/l64/make
./hello.sh
hello, world
----
Even though posix_spawn returns 0 in this situation, it still sets errno to
ENOEXEC.
This patch causes child_execute_job to compare errno against ENOEXEC after
posix_spawn returned 0.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?63070>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/