From 8f61b4325325ae423bfd4861aec2597aec6ff86f Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Sun, 5 Jul 2020 11:00:13 -0700 Subject: [PATCH] Check flag files more often --- miniserv.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/miniserv.pl b/miniserv.pl index a4a1db0ff..b1bc8679b 100755 --- a/miniserv.pl +++ b/miniserv.pl @@ -744,7 +744,7 @@ while(1) { vec($rmask, fileno(LISTEN), 1) = 1 if ($config{'listen'}); # Wait for a connection - local $sel = select($rmask, undef, undef, 10); + local $sel = select($rmask, undef, undef, 2); # Check the flag files if ($config{'restartflag'} && -r $config{'restartflag'}) { @@ -785,7 +785,6 @@ while(1) { } while($pid != 0 && $pid != -1); @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 $unblocked = 0;