cmd/lxc_init: do not hide global variable

parent 479c79dc
...@@ -182,17 +182,17 @@ static void kill_children(pid_t pid) ...@@ -182,17 +182,17 @@ static void kill_children(pid_t pid)
} }
while (!feof(f)) { while (!feof(f)) {
pid_t pid; pid_t find_pid;
if (fscanf(f, "%d ", &pid) != 1) { if (fscanf(f, "%d ", &find_pid) != 1) {
if (my_args.quiet) if (my_args.quiet)
fprintf(stderr, "Failed to retrieve pid\n"); fprintf(stderr, "Failed to retrieve pid\n");
fclose(f); fclose(f);
return; return;
} }
kill_children(pid); (void)kill_children(find_pid);
kill(pid, SIGKILL); (void)kill(find_pid, SIGKILL);
} }
fclose(f); fclose(f);
......
Markdown is supported
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