Skip to content

Commit

Permalink
mxqkill: Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mariux committed Jun 5, 2015
1 parent beefeca commit 1ec7ca8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions mxqkill.c
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,6 @@ int main(int argc, char *argv[])
group.group_id, group.user_name, group.user_uid);
else
mx_log_err("cancelling group failed: %m");

return 1;
}

Expand All @@ -361,18 +360,22 @@ int main(int argc, char *argv[])
res=0;

if (res >= 0) {
mx_log_notice("cancelled %d jobs in group with group_id=%lu",
res, group.group_id);
if (res)
mx_log_notice("cancelled %d jobs in group with group_id=%lu",
res, group.group_id);
mx_log_notice("marked all running jobs in group with group_id=%lu to be killed by executing servers.",
group.group_id);
mx_log_notice("deactivated group with group_id=%lu",
group.group_id);
return 0;
} else {
mx_log_err("cancelling jobs failed: %m");
return 1;
}
}

mx_mysql_finish(&mysql);
mx_log_info("MySQL: Connection to database closed.");
return 1;
}

0 comments on commit 1ec7ca8

Please sign in to comment.