aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAngelo Marletta <angelo.marletta@gmail.com>2012-06-07 02:24:56 +0100
committerAngelo Marletta <angelo.marletta@gmail.com>2012-06-07 02:24:56 +0100
commitd72e395ac6107e89b92e1c931b4b84ca42f60c2b (patch)
tree03ccefb6560690517fc49077a67b36a225b3c783 /tests
parent3c10d8dc5820fde90bd293d95d82f5e4302d1c7d (diff)
downloadcpulimit-d72e395ac6107e89b92e1c931b4b84ca42f60c2b.tar.gz
started process iterator for FreeBSD. still unstable.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/busybin5771 -> 5220 bytes
-rwxr-xr-x[-rw-r--r--]tests/busy.c5
2 files changed, 2 insertions, 3 deletions
diff --git a/tests/busy b/tests/busy
index 2b00d78..c3a9aab 100755
--- a/tests/busy
+++ b/tests/busy
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;
}
Un proyecto texto-plano.xyz