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.lezc...@linaro.org>
---
 idlestat.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/idlestat.c b/idlestat.c
index 24248b2..88cb11f 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
-- 
1.7.9.5


_______________________________________________
linaro-dev mailing list
linaro-dev@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-dev

Reply via email to