bug-make
[Top][All Lists]
Advanced

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

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


From: Paul D. Smith
Subject: [bug #63070] posix_spawn fails to run a child process.
Date: Sun, 18 Sep 2022 19:05:17 -0400 (EDT)

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

I'm not sure I understand the change being made.  POSIX_SPAWN_USEVFORK *is*
definitely defined in glibc 2.17: I'm looking at the source for that release
right now and see it.

It's set if __USE_GNU is set:

/* Flags to be set in the `posix_spawnattr_t'.  */
#define POSIX_SPAWN_RESETIDS            0x01
#define POSIX_SPAWN_SETPGROUP           0x02
#define POSIX_SPAWN_SETSIGDEF           0x04
#define POSIX_SPAWN_SETSIGMASK          0x08
#define POSIX_SPAWN_SETSCHEDPARAM       0x10
#define POSIX_SPAWN_SETSCHEDULER        0x20
#ifdef __USE_GNU
# define POSIX_SPAWN_USEVFORK           0x40
#endif


This is almost identical to the current version (it adds a new extra flag as
well).

I think the only way to make this work is not supply USEVFORK if we are
building with glibc less than 2.24...?


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?63070>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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