aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAngelo Marletta <angelo.marletta@gmail.com>2012-07-08 14:33:20 +0100
committerAngelo Marletta <angelo.marletta@gmail.com>2012-07-08 14:33:20 +0100
commit3dd98c5e375ccaacf32f9ed6e75763cdeebfd59a (patch)
treef2eeff98c2a3466284a9aa80770f4eba4fbf77ab
parentf209b181a28f7a56334f24c22e32eb06a41c6d3c (diff)
downloadcpulimit-3dd98c5e375ccaacf32f9ed6e75763cdeebfd59a.tar.gz
cpulimit now finds correctly processes by name
-rw-r--r--src/process_group.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/process_group.c b/src/process_group.c
index cb84deb..f9d8dcd 100644
--- a/src/process_group.c
+++ b/src/process_group.c
@@ -89,7 +89,7 @@ int find_process_by_name(const char *process_name)
}
}
}
- if (close_process_iterator(&it) != 1) exit(1);
+ if (close_process_iterator(&it) != 0) exit(1);
if (found == 1) {
//ok, the process was found
return pid;
Un proyecto texto-plano.xyz