try again
authorminima <minima>
Fri, 30 Mar 2001 16:51:55 +0000 (16:51 +0000)
committerminima <minima>
Fri, 30 Mar 2001 16:51:55 +0000 (16:51 +0000)
perl/cluster.pl

index a8a2cc8ea587bf300952873fc318dcb25fed7c05..0c12e3a9cfa332047fbb5025b12c0efde3ff2fbf 100755 (executable)
@@ -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