kill: add missing ifdefs

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2019-12-09 16:20:06 +01:00
parent 8e0b90e012
commit 8aab38783a
1 changed files with 2 additions and 0 deletions

View File

@ -494,12 +494,14 @@ int main(int argc, char **argv)
}
}
#ifdef UL_HAVE_PIDFD
while (!list_empty(&ctl.follow_ups)) {
struct timeouts *x = list_entry(ctl.follow_ups.next,
struct timeouts, follow_ups);
list_del(&x->follow_ups);
free(x);
}
#endif
if (ct && nerrs == 0)
return EXIT_SUCCESS; /* full success */
else if (ct == nerrs)