better win detection
authorminima <minima>
Fri, 30 Mar 2001 16:50:07 +0000 (16:50 +0000)
committerminima <minima>
Fri, 30 Mar 2001 16:50:07 +0000 (16:50 +0000)
perl/cluster.pl

index 291a751d0d166b24cd6c54f4f38fc8593bbb82b2..a8a2cc8ea587bf300952873fc318dcb25fed7c05 100755 (executable)
@@ -89,7 +89,7 @@ $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/; # is it Windows?
+$is_win = ($^O =~ /^MS/ || $^O =~ /^OS-2/) ? 1 : 0; # is it Windows?