X-Git-Url: http://scm.dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2Fcluster.pl;h=dfae3278efb914bf5bdc944be1ac91c393a7b2e9;hb=44bab9382ffb0bf12639af84729d1c42ac4d9ae2;hp=1ecbc094a704487fd96c3998a560eb493d02f976;hpb=4e5b3de7a26563d94678fb790b8a1e2c4daaac8d;p=spider.git diff --git a/perl/cluster.pl b/perl/cluster.pl index 1ecbc094..dfae3278 100755 --- a/perl/cluster.pl +++ b/perl/cluster.pl @@ -61,6 +61,7 @@ use Filter; use DXDb; use AnnTalk; use WCY; +use DXDupe; use Data::Dumper; use Fcntl ':flock'; @@ -219,6 +220,7 @@ sub cease Msg->event_loop(1, 0.05); Msg->event_loop(1, 0.05); DXUser::finish(); + DXDupe::finish(); # close all databases DXDb::closeall; @@ -253,11 +255,6 @@ sub process_inqueue my ($sort, $call, $line) = DXChannel::decode_input($dxchan, $data); return unless defined $sort; - # translate any crappy characters into hex characters - if ($line =~ /[\x00-\x06\x08\x0a-\x1f\x7f-\xff]/o) { - $line =~ s/([\x00-\x1f\x7f-\xff])/uc sprintf("%%%02x",ord($1))/eg; - } - # do the really sexy console interface bit! (Who is going to do the TK interface then?) dbg('chan', "<- $sort $call $line\n") unless $sort eq 'D'; @@ -345,6 +342,9 @@ for (keys %SIG) { } } +# start dupe system +DXDupe::init(); + # read in system messages DXM->init(); @@ -415,6 +415,8 @@ for (;;) { DXMsg::process(); DXDb::process(); DXUser::process(); + DXDupe::process(); + eval { Local::process(); # do any localised processing };