]> git.etc.gen.nz Git - spong.git/commitdiff
added alarm(0) and close PING to eval block
authorStephen L Johnson <sjohnson@monsters.org>
Mon, 7 May 2001 14:49:58 +0000 (14:49 +0000)
committerStephen L Johnson <sjohnson@monsters.org>
Mon, 7 May 2001 14:49:58 +0000 (14:49 +0000)
src/lib/Spong/Network/plugins/check_ping

index ed6b2a5f6e92694128686accd6994dc2bb147de2..096728d0a693a7ec9ea8f4acf6eceafc33815c40 100755 (executable)
@@ -36,6 +36,8 @@ sub check_ping {
             if( /octets from/ ) { $pingok = 1; }
          }
 
+         alarm(0);
+         close PING;
       };
       close PING;
       alarm(0);