summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2023-12-27 13:18:03 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2023-12-27 13:18:03 +0100
commit1a5fa7454c92c5497c23e179e599224f0d96a920 (patch)
treeb6c596bb80e9f18beeb76bfd727ae624c2f17dae
parent8bdb849e449c5236a1ef7e8b4b91186790f7fb29 (diff)
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 constraint but 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."
-rwxr-xr-xsfeed_update2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfeed_update b/sfeed_update
index 85cd759..1bdafed 100755
--- 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=$?