Subject: | nowait doesn't work |
i've mentioned that the nowait parameter isn't evaluated during
creation of a new Tail object.
Therefore the parameter has to be stored in the object hash.
I've added a little patch.
--- File-Tail-0.99.1/Tail.pm 2004-12-01 15:00:51.000000000 +0100
+++ File-Tail-0.99.2/Tail.pm 2005-08-22 16:01:36.000000000 +0200
@@ -258,6 +258,7 @@
} else {
$object->{"reset_tail"} = -1;
}
+ $object->nowait($params{'nowait'} || 0);
$object->{'ignore_nonexistant'}=($params{'ignore_nonexistant'} || 0);
$object->{"lastread"}=0;
$object->{"sleepcount"}=0;