projects
/
spider.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
92195fd
)
allow a bit of slack after midnight waiting for new logfile to appear
author
minima
<minima>
Mon, 28 Aug 2000 10:43:46 +0000
(10:43 +0000)
committer
minima
<minima>
Mon, 28 Aug 2000 10:43:46 +0000
(10:43 +0000)
perl/watchdbg
patch
|
blob
|
history
diff --git
a/perl/watchdbg
b/perl/watchdbg
index 6da3a586a712040d19cff2590ab3c5e85b372009..ca3e2e3b03c134abcbd7ef6b46d0aa63f65864a3 100755
(executable)
--- a/
perl/watchdbg
+++ b/
perl/watchdbg
@@
-51,7
+51,11
@@
for (;;) {
my @now = Julian::unixtoj(time());
if ($today[1] != $now[1]) {
$fp->close;
my @now = Julian::unixtoj(time());
if ($today[1] != $now[1]) {
$fp->close;
- $fh = $fp->open(@now) or die $!;
+ for (my $i = 0; $i < 20; $i++) {
+ last if $fh = $fp->open(@now);
+ sleep 5;
+ }
+ die $! if $i >= 20;
@today = @now;
}
}
@today = @now;
}
}