Skip to content
Snippets Groups Projects
Commit ddd1f893 authored by Moe Jette's avatar Moe Jette
Browse files

Add missing variable def.

parent 7a929c50
No related branches found
No related tags found
No related merge requests found
...@@ -706,7 +706,7 @@ static void *_slurmctld_background(void *no_data) ...@@ -706,7 +706,7 @@ static void *_slurmctld_background(void *no_data)
static time_t last_timelimit_time; static time_t last_timelimit_time;
static time_t last_assert_primary_time; static time_t last_assert_primary_time;
time_t now; time_t now;
int i, ping_interval; int cnt, i, ping_interval;
DEF_TIMERS; DEF_TIMERS;
/* Locks: Read config */ /* Locks: Read config */
...@@ -844,11 +844,12 @@ static void *_slurmctld_background(void *no_data) ...@@ -844,11 +844,12 @@ static void *_slurmctld_background(void *no_data)
} }
for (i=0; i<20; i++) { for (i=0; i<20; i++) {
if (agent_retry(0) == 0) cnt = agent_retry(0);
if (cnt == 0)
break; break;
usleep(1000); usleep(1000);
} }
if (agent_retry(0)) if (cnt)
error("terminating with %d pending message agent requests", cnt); error("terminating with %d pending message agent requests", cnt);
debug3("_slurmctld_background shutting down"); debug3("_slurmctld_background shutting down");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment