[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:
<https://savannah.gnu.org/bugs/?63070>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [bug #63070] posix_spawn fails to run a child process., Dmitry Goncharov, 2022/09/16
- [bug #63070] posix_spawn fails to run a child process., Dmitry Goncharov, 2022/09/16
- [bug #63070] posix_spawn fails to run a child process., Dmitry Goncharov, 2022/09/16
- [bug #63070] posix_spawn fails to run a child process., anonymous, 2022/09/17
- [bug #63070] posix_spawn fails to run a child process., Paul D. Smith, 2022/09/17
- [bug #63070] posix_spawn fails to run a child process., Martin Dorey, 2022/09/17
- [bug #63070] posix_spawn fails to run a child process., Dmitry Goncharov, 2022/09/18
- [bug #63070] posix_spawn fails to run a child process., Dmitry Goncharov, 2022/09/18
- [bug #63070] posix_spawn fails to run a child process., Paul D. Smith, 2022/09/18
- [bug #63070] posix_spawn fails to run a child process.,
Dmitry Goncharov <=
- [bug #63070] posix_spawn fails to run a child process., Dmitry Goncharov, 2022/09/18
- [bug #63070] posix_spawn fails to run a child process., Paul D. Smith, 2022/09/20
- [bug #63070] posix_spawn fails to run a child process., Dmitry Goncharov, 2022/09/20
- [bug #63070] posix_spawn fails to run a child process., Dmitry Goncharov, 2022/09/20
- [bug #63070] posix_spawn fails to run a child process., Dmitry Goncharov, 2022/09/20
- [bug #63070] posix_spawn fails to run a child process., Martin Dorey, 2022/09/20
- [bug #63070] posix_spawn fails to run a child process., Dmitry Goncharov, 2022/09/20
- [bug #63070] posix_spawn fails to run a child process., Alejandro Colomar, 2022/09/21
- Re: [bug #63070] posix_spawn fails to run a child process., Edward Welbourne, 2022/09/21
- [bug #63070] posix_spawn fails to run a child process., Paul D. Smith, 2022/09/25