[Toybox] [PATCH] xargs: add --process-slot-var.
enh
enh at google.com
Wed Nov 5 11:47:53 PST 2025
okay, here's take two...
[PATCH] xargs: add --process-slot-var.
This also requires that we properly track child pids, so we can map
between pids and slots.
---
tests/xargs.test | 2 ++
toys/posix/xargs.c | 40 +++++++++++++++++++++++++++++-----------
2 files changed, 31 insertions(+), 11 deletions(-)
On Wed, Nov 5, 2025 at 1:35 PM enh <enh at google.com> wrote:
>
> hmm... for this to be useful, i think we actually need to properly
> track children rather than just increment/decrement TT.np. as it is,
> this means the numbers are only meaningful until/unless we hit the
> TT.P limit, at which point the waitchild() call inside the
> input-parsing loop means we'll keep reusing the topmost values,
> whether the corresponding processes have exited or not.
>
> On Wed, Nov 5, 2025 at 11:52 AM enh <enh at google.com> wrote:
> >
> > ---
> > tests/xargs.test | 2 ++
> > toys/posix/xargs.c | 8 ++++++--
> > 2 files changed, 8 insertions(+), 2 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-xargs-add-process-slot-var.patch
Type: application/x-patch
Size: 4135 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20251105/e1e7534f/attachment.bin>
More information about the Toybox
mailing list