From 11a8bd2e55e60d804b3681e33962402c980c3924 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Fri, 10 Jul 2020 17:35:46 -0700 Subject: [PATCH] Fix inverted cleanup of child PIDs --- miniserv.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miniserv.pl b/miniserv.pl index 32de11ebd..f65e9d031 100755 --- a/miniserv.pl +++ b/miniserv.pl @@ -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