Commit 9738955e authored by Arnaud Blanchard's avatar Arnaud Blanchard
Browse files

There is no warning if the program is stucked while it is in pause

parent f39c4518
......@@ -125,13 +125,15 @@ static void *loop_check_stuck(void*){
iteration = blc_loop_iteration;
sleep(checking_time);
if (iteration==blc_loop_iteration) {
color_eprintf(BLC_YELLOW, "'%s' seems blocked on iteration '%d'. The loop has been stopped for more than %ds\n", blc_program_name, iteration, checking_time);
was_stucked=1;
}
else if (was_stucked) {
color_eprintf(BLC_GREEN, "'%s' program restart iteration '%d'.\n", blc_program_name, iteration);
was_stucked=0;
if(blc_status==BLC_RUN){ //in BLC_PAUSE it is normal to block
if (iteration==blc_loop_iteration) {
color_eprintf(BLC_YELLOW, "'%s' seems blocked on iteration '%d'. The loop has been stopped for more than %ds\n", blc_program_name, iteration, checking_time);
was_stucked=1;
}
else if (was_stucked) {
color_eprintf(BLC_GREEN, "'%s' program restart iteration '%d'.\n", blc_program_name, iteration);
was_stucked=0;
}
}
}
return NULL;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment