On 10/28/26 22:05, Koral Ilgun wrote:
From: Koral Ilgun <[email protected]>
exit () runs wait_for_proc_all (), the atexit handler that reaps the
last commands. When one of them was killed by a signal or exited
with status 255, wait_for_proc () called exit () again. POSIX leaves
a second call undefined, and musl 1.2.6 traps it, so xargs died with
SIGSEGV instead of an exit with status 125 or 124. This happens with
and without -P.
wait_for_proc_all () is the only caller that passes ALL, and it
already ends with _exit () when the status changed, so wait_for_proc ()
now leaves the exit to it there.
* xargs/xargs.c (wait_for_proc): Do not call exit () when ALL is set.
Good spot!
I've pushed this in your name changing ...
Signed-off-by: Koral Ilgun <[email protected]>
... this (because it's not required in this project) by ...
Copyright-paperwork-exempt: Yes
this.
Thanks & have a nice day,
Berny