coreutils
[Top][All Lists]
Advanced

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

Re: Using posix_spawn in coreutils?


From: Collin Funk
Subject: Re: Using posix_spawn in coreutils?
Date: Sun, 19 Oct 2025 15:57:10 -0700
User-agent: Gnus/5.13 (Gnus v5.13)

PƔdraig Brady <P@draigBrady.com> writes:

> That flag is a no-op 
> since:https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=ccfb2964and only 
> there to allow old code to compile.

That change was after the clone implementation. It looks like before
then the POSIX_SPAWN_USEVFORK implementation actually used vfork which
would likewise use clone with CLONE_VM.

> The default settings may be just fine these days,
> though I've not looked into the details.

The default works well, that is what I used in my original message.
Gnulib's version uses vfork when POSIX_SPAWN_USEVFORK is used, which
might help other systems, though.

Collin



reply via email to

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