In case the application is killed by the timeout and it handles the SIGTERM, it may return an error, thus idlestat won't display the result.
Ignore the return code of the application.
Signed-off-by: Daniel Lezcano daniel.lezcano@linaro.org --- idlestat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/idlestat.c b/idlestat.c index 77f6d0a..a0ef2dd 100644 --- a/idlestat.c +++ b/idlestat.c @@ -1364,7 +1364,7 @@ static int execute(int argc, char *argv[], char *const envp[], goto again; }
- if (WIFEXITED(status) && !WEXITSTATUS(status)) { + if (WIFEXITED(status)) { /* * Cancel the timer in case the program * finished before the timeout