jbeich reported that xargs -Px doesn't work anymore because
of a botched rebase. This is true, but easy to fix. See attached patch.
I also added test cases to xargs to test -P functionality in the future.
There is Bugzilla 202152 about this.
Paths
| Differential D3330 Authored by allanjude on Aug 7 2015, 1:35 PM.
Details Summary jbeich reported that xargs -Px doesn't work anymore because There is Bugzilla 202152 about this. Test Plan kyua -k /usr/tests usr.bin/xargs
Diff Detail
Event Timelinelifanov_mail.lifanov.com updated this revision to Diff 7754.Aug 7 2015, 1:35 PM2015-08-07 13:35:57 (UTC+0) lifanov_mail.lifanov.com retitled this revision from to fix regression in xargs -Px and add regression tests. lifanov_mail.lifanov.com updated this object. lifanov_mail.lifanov.com added reviewers: jbeich, allanjude.Aug 7 2015, 1:36 PM2015-08-07 13:36:48 (UTC+0) lifanov_mail.lifanov.com updated this object. jbeich edited edge metadata. Comment Actions
Note, I'm not a src/ committer to have much weight.
This revision is now accepted and ready to land.Aug 7 2015, 2:51 PM2015-08-07 14:51:29 (UTC+0) lifanov_mail.lifanov.com updated this revision to Diff 7758.Aug 7 2015, 2:56 PM2015-08-07 14:56:42 (UTC+0) lifanov_mail.lifanov.com edited edge metadata. Comment ActionsYou are right, maxprocs < 0 is unreachable This revision now requires review to proceed.Aug 7 2015, 2:56 PM2015-08-07 14:56:42 (UTC+0) lifanov_mail.lifanov.com marked an inline comment as done.Aug 7 2015, 2:57 PM2015-08-07 14:57:21 (UTC+0) Comment ActionsYou are right, maxprocs < 0 is unreachable. I updated the diff. Comment Actions In the process of being switched from strtoul() to strtonum(), a check against endptr was not removed, causing xargs to segfault This patch fixes that, and adds a set of regression tests against the -P flag, that were previously missing. I would like to commit this, to fix the previous commit. bapt edited edge metadata. This revision is now accepted and ready to land.Aug 8 2015, 5:49 PM2015-08-08 17:49:00 (UTC+0) Closed by commit rS286461: fix regression in xargs -Px (introduced in r286289) and add regression tests (authored by allanjude). · Explain WhyAug 8 2015, 6:37 PM2015-08-08 18:37:35 (UTC+0) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 7785 head/usr.bin/xargs/tests/Makefile
head/usr.bin/xargs/tests/regress.0P1.out
head/usr.bin/xargs/tests/regress.P1.out
head/usr.bin/xargs/tests/regress.n2P0.out
head/usr.bin/xargs/tests/regress.sh
head/usr.bin/xargs/xargs.c
|