[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #63070] posix_spawn fails to run a child process.

From: Dmitry Goncharov
Subject: [bug #63070] posix_spawn fails to run a child process.
Date: Sun, 18 Sep 2022 19:23:23 -0400 (EDT)

Follow-up Comment #7, bug #63070 (project make):

Let me describe differently.

posix_spawn calls either vfork or clone, depending on arguments being passed.
See the man page referenced above.
I observed that when posix_spawn calls vfork, that's is when
POSIX_SPAWN_USEVFORK is set in flags, errno is set to ENOEXEC. This allows the
patch to work.
When posix_spawn calls clone, that is POSIX_SPAWN_USEVFORK is not set in
flags, errno it not set. In this situation the patch does not help.

In other words, make wants to set POSIX_SPAWN_USEVFORK in order to let the
patch work.

The change in configure.ac in case there is such a even older version of glibc
where posix_spawn returns 0 and there is no POSIX_SPAWN_USEVFORK (i am not
sure there is such a version, but if there is, it's definitely not 2.17). In
that case the configure check disables posix_spawn.


Reply to this item at:


Message sent via Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]