From fd8d338d5bd997a6c167a0c87c45386ed2c153d0 Mon Sep 17 00:00:00 2001 From: Moe Jette <jette1@llnl.gov> Date: Fri, 9 Dec 2005 19:19:38 +0000 Subject: [PATCH] change variable type from int to bool and correct comments. --- src/slurmd/slurmd/req.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/slurmd/slurmd/req.c b/src/slurmd/slurmd/req.c index 5e373e187d5..c01332aaa3c 100644 --- a/src/slurmd/slurmd/req.c +++ b/src/slurmd/slurmd/req.c @@ -1608,12 +1608,13 @@ static int _waiter_complete (uint32_t jobid) * Like _wait_for_procs(), but only wait for up to max_time seconds * if max_time == 0, send SIGKILL to tasks repeatedly * - * Returns true if all job + * Returns true if all job processes are gone */ static bool _pause_for_job_completion (uint32_t job_id, int max_time) { - int sec = 0, rc = 0; + int sec = 0; + bool rc = false; while ( ((sec++ < max_time) || (max_time == 0)) && (rc = _job_still_running (job_id))) { -- GitLab