diff options
author | Angelo Marletta <angelo.marletta@gmail.com> | 2012-06-07 02:24:56 +0100 |
---|---|---|
committer | Angelo Marletta <angelo.marletta@gmail.com> | 2012-06-07 02:24:56 +0100 |
commit | d72e395ac6107e89b92e1c931b4b84ca42f60c2b (patch) | |
tree | 03ccefb6560690517fc49077a67b36a225b3c783 /tests | |
parent | 3c10d8dc5820fde90bd293d95d82f5e4302d1c7d (diff) | |
download | cpulimit-d72e395ac6107e89b92e1c931b4b84ca42f60c2b.tar.gz |
started process iterator for FreeBSD. still unstable.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/busy | bin | 5771 -> 5220 bytes | |||
-rwxr-xr-x[-rw-r--r--] | tests/busy.c | 5 |
2 files changed, 2 insertions, 3 deletions
Binary files differ diff --git a/tests/busy.c b/tests/busy.c index 4839033..b3afb7c 100644..100755 --- a/tests/busy.c +++ b/tests/busy.c @@ -13,7 +13,7 @@ int main(int argc, char **argv) { int i = 0; int num_threads = 1; if (argc == 2) num_threads = atoi(argv[1]); - for (i=0; i<num_threads; i++) + for (i=0; i<num_threads-1; i++) { pthread_t thread; int ret; @@ -23,8 +23,7 @@ int main(int argc, char **argv) { exit(1); } } - printf("Press ENTER to exit..."); - getchar(); + loop(); return 0; } |