sfeed_update: remove xargs -s - sfeed - RSS and Atom parser | |
git clone git://git.codemadness.org/sfeed | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 1a5fa7454c92c5497c23e179e599224f0d96a920 | |
parent 8bdb849e449c5236a1ef7e8b4b91186790f7fb29 | |
Author: Hiltjo Posthuma <[email protected]> | |
Date: Wed, 27 Dec 2023 13:18:03 +0100 | |
sfeed_update: remove xargs -s | |
Theres no need to specify. POSIX defines it should support at least LINE_MAX | |
(2048 typically). | |
OpenIndiana xargs doesn't conform to POSIX. It doesn't use the largest constrai… | |
errors out. | |
From POSIX: | |
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/xargs.html | |
"Values of size up to at least {LINE_MAX} bytes shall be supported, provided | |
that the constraints specified in the DESCRIPTION are met. It shall not be | |
considered an error if a value larger than that supported by the implementation | |
or exceeding the constraints specified in the DESCRIPTION is given; xargs shall | |
use the largest value it supports within the constraints." | |
Diffstat: | |
M sfeed_update | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/sfeed_update b/sfeed_update | |
@@ -216,7 +216,7 @@ main() { | |
# print feeds for parallel processing with xargs. | |
feeds > "${sfeedtmpdir}/jobs" || die | |
- SFEED_UPDATE_CHILD="1" xargs -s 65535 -x -0 -P "${maxjobs}" -n 1 \ | |
+ SFEED_UPDATE_CHILD="1" xargs -x -0 -P "${maxjobs}" -n 1 \ | |
"$(readlink -f "${argv0}")" < "${sfeedtmpdir}/jobs" | |
statuscode=$? | |