[RFC] posix: Make system, popen, and wordexp try pidfd_spawn first (BZ 34001)

Cristian Rodriguez yo@cristianrodriguez.net
Fri May 8 13:26:07 GMT 2026


On Tue, May 5, 2026 at 11:20 AM Adhemerval Zanella Netto
<adhemerval.zanella@linaro.org> wrote:
>
>
>
> On 05/05/26 12:03, Florian Weimer wrote:
> > * Adhemerval Zanella Netto:
> >

> But back to the main RFC, would this be an acceptable change?

It would be very nice if someone could ack this.
It resolves PID reuse problems that calling applications can't actually fix.
it is possible for example that system() or wordexp calls
`__kill_noerrno` on a PID that has already been reused if either
the system has a heavy process creation load or is only slightly
loaded and uses the default or low pid.max.


More information about the Libc-alpha mailing list