coredump: use for() loop instead of while()

This commit is contained in:
Stefan Schweter 2016-10-12 22:49:01 +02:00
parent e7f1334f07
commit aa7530d681

View file

@ -589,7 +589,7 @@ static int get_mount_namespace_leader(pid_t pid, pid_t *container_pid) {
if (r < 0)
return r;
while (1) {
for (;;) {
ino_t parent_mntns;
r = get_process_ppid(cpid, &ppid);