]> err.no Git - moreutils/commitdiff
parallel: Assume -j 1 if no -j or -l is given
authorTollef Fog Heen <tfheen@err.no>
Fri, 10 Jul 2009 11:54:21 +0000 (13:54 +0200)
committerTollef Fog Heen <tfheen@err.no>
Fri, 10 Jul 2009 11:54:21 +0000 (13:54 +0200)
parallel.c

index 438bc935020b7e739c6a6dfcf98aab786e394a08..597cda228c1635094fdd1136ac2079a0e47ff6b8 100644 (file)
@@ -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) {