X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2Fcluster.pl;h=0c12e3a9cfa332047fbb5025b12c0efde3ff2fbf;hb=9d573b0c36820badc1dc1e03bcd62960b572bb1c;hp=a8a2cc8ea587bf300952873fc318dcb25fed7c05;hpb=e4a826c75f729d4c4ecc6a4b7ac3f1b9517c6091;p=spider.git diff --git a/perl/cluster.pl b/perl/cluster.pl index a8a2cc8e..0c12e3a9 100755 --- a/perl/cluster.pl +++ b/perl/cluster.pl @@ -36,6 +36,9 @@ BEGIN { open(CLLOCK, ">$lockfn") or die "Can't open Lockfile ($lockfn) $!"; print CLLOCK "$$\n"; close CLLOCK; + + $is_win = ($^O =~ /^MS/ || $^O =~ /^OS-2/) ? 1 : 0; # is it Windows? + } use Msg; @@ -89,8 +92,6 @@ $starttime = 0; # the starting time of the cluster $lockfn = "cluster.lock"; # lock file name #@outstanding_connects = (); # list of outstanding connects @listeners = (); # list of listeners -$is_win = ($^O =~ /^MS/ || $^O =~ /^OS-2/) ? 1 : 0; # is it Windows? - # send a message to call on conn and disconnect