summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid A. Madore <david+git@madore.org>2010-02-22 19:16:18 +0100
committerDavid A. Madore <david+git@madore.org>2010-02-22 19:16:18 +0100
commit2c4b3387b797e9ae88790c2ca0a8dde4e848c86e (patch)
treeda35a8b71e62884638fb91e954198f892d9e9fa9
parentabbf6293642e1ca64f556ea05a3ea76bf51fe81f (diff)
downloademergency-2c4b3387b797e9ae88790c2ca0a8dde4e848c86e.tar.gz
emergency-2c4b3387b797e9ae88790c2ca0a8dde4e848c86e.tar.bz2
emergency-2c4b3387b797e9ae88790c2ca0a8dde4e848c86e.zip
Cancel timeout to avoid stupid race condition.HEADmaster
-rwxr-xr-xemergencyc.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/emergencyc.pl b/emergencyc.pl
index c460dc1..5cd3034 100755
--- a/emergencyc.pl
+++ b/emergencyc.pl
@@ -78,6 +78,7 @@ eval {
do {
$sender = recv($socket, $buf, 16384, 0);
} while ( defined($sender) && $sender ne $haddr );
+ alarm 0;
};
if ( $@ ) {
print "timeout\n";