Fix inverted cleanup of child PIDs

This commit is contained in:
Jamie Cameron
2020-07-10 17:35:46 -07:00
parent 3db98c7a2d
commit 11a8bd2e55

View File

@@ -783,7 +783,7 @@ while(1) {
do { $pid = waitpid(-1, WNOHANG);
@childpids = grep { $_ != $pid } @childpids;
} while($pid != 0 && $pid != -1);
@childpids = grep { !kill(0, $_) } @childpids;
@childpids = grep { kill(0, $_) } @childpids;
# run the unblocking procedure to check if enough time has passed to
# unblock hosts that heve been blocked because of password failures