FreeBSD Bugzilla – Attachment 156407 Details for
Bug 199976
[patch] implement xargs -P0
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
xargs: implement -P0
xargs-P.diff (text/plain), 894 bytes, created by
Nikolai Lifanov
on 2015-05-05 20:18:26 UTC
(
hide
)
Description:
xargs: implement -P0
Filename:
MIME Type:
Creator:
Nikolai Lifanov
Created:
2015-05-05 20:18:26 UTC
Size:
894 bytes
patch
obsolete
>Index: xargs.1 >=================================================================== >--- xargs.1 (revision 282504) >+++ xargs.1 (working copy) >@@ -206,7 +206,11 @@ > .Ar maxprocs > invocations of > .Ar utility >-at once. >+at once. If >+.Ar maxprocs >+is negative or 0, >+.Nm >+will run as many processes as possible at a time. > .It Fl p > Echo each command to be executed and ask the user whether it should be > executed. >Index: xargs.c >=================================================================== >--- xargs.c (revision 282504) >+++ xargs.c (working copy) >@@ -159,8 +159,11 @@ > oflag = 1; > break; > case 'P': >- if ((maxprocs = atoi(optarg)) <= 0) >- errx(1, "max. processes must be >0"); >+ maxprocs = strtol(optarg, &endptr, 10); >+ if (*endptr != '\0') >+ errx(1, "max. processes must be a number"); >+ if (maxprocs < 1) >+ maxprocs = nargs; > break; > case 'p': > pflag = 1;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 199976
: 156407