summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTollef Fog Heen <tfheen@err.no>2009-07-10 13:54:21 +0200
committerTollef Fog Heen <tfheen@err.no>2009-07-10 13:54:21 +0200
commit4154bdcaadc1fb1ad2e7cd0f8f887dac5346a0d7 (patch)
tree8656d8d18db28a8bc455bbc9b3e6ca2e05a1d5f9
parente608a0284a84bb37a5a621eae72b0a456ec5484b (diff)
downloadmoreutils-4154bdcaadc1fb1ad2e7cd0f8f887dac5346a0d7.tar.gz
parallel: Assume -j 1 if no -j or -l is given
-rw-r--r--parallel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/parallel.c b/parallel.c
index 438bc93..597cda2 100644
--- a/parallel.c
+++ b/parallel.c
@@ -113,7 +113,8 @@ int main(int argc, char **argv)
}
if (maxjobs < 0 && maxload < 0) {
- usage();
+ maxjobs = 1; /* XXX: Maybe we should try to autodetect
+ number of CPUs? */
}
while (optind < argc) {