projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added set/lockout
[spider.git]
/
perl
/
DXCron.pm
diff --git
a/perl/DXCron.pm
b/perl/DXCron.pm
index 94c1cad0450573d6399a08fdc5ab3c4c9c57515b..eefa25816cac8181432d2edc9c5a3343d5ab40dd 100644
(file)
--- a/
perl/DXCron.pm
+++ b/
perl/DXCron.pm
@@
-12,8
+12,7
@@
use DXVars;
use DXUtil;
use DXM;
use DXDebug;
use DXUtil;
use DXM;
use DXDebug;
-use FileHandle;
-use Carp;
+use IO::File;
use strict;
use strict;
@@
-58,7
+57,7
@@
sub init
sub cread
{
my $fn = shift;
sub cread
{
my $fn = shift;
- my $fh = new
FileHand
le;
+ my $fh = new
IO::Fi
le;
my $line = 0;
dbg('cron', "cron: reading $fn\n");
my $line = 0;
dbg('cron', "cron: reading $fn\n");
@@
-234,6
+233,11
@@
sub start_connect
my $call = uc shift;
my $lccall = lc $call;
my $call = uc shift;
my $lccall = lc $call;
+ if (grep {$_->{call} eq $call} @main::outstanding_connects) {
+ dbg('cron', "Connect not started, outstanding connect to $call");
+ return;
+ }
+
my $prog = "$main::root/local/client.pl";
$prog = "$main::root/perl/client.pl" if ! -e $prog;
my $prog = "$main::root/local/client.pl";
$prog = "$main::root/perl/client.pl" if ! -e $prog;