Subject | Hash | Author | Date (UTC) |
---|---|---|---|
parallel: Fix logic error in code handling -l that could make parallel return a bogus 255 exit code when all jobs succeeded. Closes: #569617 | a1a2b5fe9f8e474c55308637caa3f4852f52b480 | Joey Hess | 2010-02-23 20:35:34 |
parallel: Fix to really avoid running new jobs when load is too high. | f8f42e5fae33fc0e5a5500c2594982f84de592a2 | Joey Hess | 2010-02-23 19:36:50 |
parallel: Make -j 0 do something reasonable (start all jobs at once). | 9e1baf374a9e26b2e29f706ef3e65273410eedb9 | Joey Hess | 2010-02-23 19:17:26 |
parallel: Fix exit code handling when commands are specified after -- | 448a100d287f2cc183f305f9e28723776f10b1bf | Joey Hess | 2010-02-23 18:59:20 |
Cap sillyness. Closes: #570815 | 62b8a323afe9cd95f2bff26c7db455e226a40cec | Joey Hess | 2010-02-21 18:16:23 |
releasing version 0.38 | 9c0302474850fa0d16a1d2bca094325e9eea546b | Joey Hess | 2010-02-09 21:42:14 |
changelog | 8324a9ca9cfa1588339166cf70911fbbe99c8854 | Joey Hess | 2010-02-09 20:47:40 |
parallel: Define WEXITED to allow building on FreeBSD kernel. (This is somewhat experimental.) | 753f003b589caca0b7a25c0df6c6ae14e7b20a89 | Joey Hess | 2010-02-09 20:40:14 |
freebsd patch from Enrico Tassi | ff93b6b5da3e3d404a659973fe898b9cfd3a8092 | Joey Hess | 2010-02-09 20:35:10 |
wording | ad61b8762ecb666d386160df83031d34071e1031 | Joey Hess | 2009-10-31 23:02:53 |
parallel: Allow running independent commands, like `parallel -j3 -- ls df "echo hi"` | e0b2bcda976eb43b3976b750ce4261db6d608af8 | Joey Hess | 2009-10-31 14:20:08 |
Description improvements. Closes: #549450 (Thanks, Justin B Rye) | c54640a51bbf3ee6a8bc0054b48f31e46dd86ce1 | Joey Hess | 2009-10-05 17:33:27 |
releasing version 0.37 | 007d7b518d2d83b536adad36f3126856b1cd117a | Joey Hess | 2009-07-25 08:23:55 |
parallel.1: Typo fixes. Closes: #538147 | 6501eeabda20d1b1cf1f137d9bcfd167164a99df | Joey Hess | 2009-07-25 08:03:42 |
update | 0ddc5db2ce6e03ff7d7ff394b9285ff62d504b02 | Joey Hess | 2009-07-25 08:02:56 |
support -n option | 2470d063c10dc25daeedb31bcd77865da06d65fd | Pierre Habouzit | 2009-07-22 09:17:20 |
parallel: Clarify man page regarding CPUs. Closes: #536597 | f933ad5fa6a1a400426763576895f050da32ccbf | Joey Hess | 2009-07-15 14:13:52 |
releasing version 0.36 | 6cf8eb501e1636b37bf61b86b0aaeade05fc768b | Joey Hess | 2009-07-10 15:04:21 |
update | 87bb3ae3ea452f7abba694be1840ee177d03c085 | Joey Hess | 2009-07-10 15:01:25 |
use sysconf to determine number of processors | b5c8031c8f202c8140ee69c901c0e719a244aa77 | Joey Hess | 2009-07-10 14:51:46 |
File | Lines added | Lines deleted |
---|---|---|
debian/changelog | 2 | 0 |
parallel.c | 3 | 3 |
File debian/changelog changed (mode: 100644) (index fe89fdf..b0ac071) | |||
... | ... | moreutils (0.39) UNRELEASED; urgency=low | |
4 | 4 | * parallel: Fix exit code handling when commands are specified after -- | * parallel: Fix exit code handling when commands are specified after -- |
5 | 5 | * parallel: Make -j 0 do something reasonable (start all jobs at once). | * parallel: Make -j 0 do something reasonable (start all jobs at once). |
6 | 6 | * parallel: Fix to really avoid running new jobs when load is too high. | * parallel: Fix to really avoid running new jobs when load is too high. |
7 | * parallel: Fix logic error in code handling -l that could make parallel | ||
8 | return a bogus 255 exit code when all jobs succeeded. Closes: #569617 | ||
7 | 9 | ||
8 | 10 | -- Joey Hess <joeyh@debian.org> Sun, 21 Feb 2010 13:16:10 -0500 | -- Joey Hess <joeyh@debian.org> Sun, 21 Feb 2010 13:16:10 -0500 |
9 | 11 |
File parallel.c changed (mode: 100644) (index 19f341a..6bd4665) | |||
... | ... | int main(int argc, char **argv) { | |
211 | 211 | argidx += argsatonce; | argidx += argsatonce; |
212 | 212 | curjobs++; | curjobs++; |
213 | 213 | } | } |
214 | |||
214 | |||
215 | 215 | if (maxjobs == 0 || curjobs == maxjobs) { | if (maxjobs == 0 || curjobs == maxjobs) { |
216 | 216 | returncode |= wait_for_child(0); | returncode |= wait_for_child(0); |
217 | 217 | curjobs--; | curjobs--; |
... | ... | int main(int argc, char **argv) { | |
222 | 222 | sleep(1); /* XXX We should have a better | sleep(1); /* XXX We should have a better |
223 | 223 | * heurestic than this */ | * heurestic than this */ |
224 | 224 | r = wait_for_child(WNOHANG); | r = wait_for_child(WNOHANG); |
225 | if (r > 0) { | ||
225 | if (r > 0) | ||
226 | 226 | returncode |= r; | returncode |= r; |
227 | if (r != -1) | ||
227 | 228 | curjobs--; | curjobs--; |
228 | } | ||
229 | 229 | } | } |
230 | 230 | } | } |
231 | 231 | while (curjobs > 0) { | while (curjobs > 0) { |