]> git.p6c8.net - selfforum.git/blobdiff - selfforum-cgi/shared/Arc/Starter.pm
now, if main file is master locked, fo_view.pl won't show any single message
[selfforum.git] / selfforum-cgi / shared / Arc / Starter.pm
index 905a33acaa61d64b088e87279e7b5a3f183f53eb..ea923a7dd2a449fc8492ea180b6818fb158ac939 100644 (file)
@@ -4,7 +4,7 @@ package Arc::Starter;
 #                                                                              #
 # File:        shared/Arc/Starter.pm                                           #
 #                                                                              #
-# Authors:     Andre Malo       <nd@o3media.de>, 2001-07-16                    #
+# Authors:     André Malo <nd@o3media.de>                                      #
 #                                                                              #
 # Description: start severancer and archiver                                   #
 #                                                                              #
@@ -13,14 +13,17 @@ package Arc::Starter;
 use strict;
 use vars qw(
   @EXPORT
-  $VERSION
 );
 
 ################################################################################
 #
 # Version check
 #
-$VERSION = do { my @r =(q$Revision$ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r };
+# last modified:
+#    $Date$ (GMT)
+# by $Author$
+#
+sub VERSION {(q$Revision$ =~ /([\d.]+)\s*$/)[0] or '0.0'}
 
 ################################################################################
 #
@@ -45,14 +48,16 @@ sub win32_start ($) {
   require Win32::Process; Win32::Process -> import ('NORMAL_PRIORITY_CLASS', 'DETACHED_PROCESS');
   require Win32;
 
-  Win32::Process::Create(
-    $p,
-    $x,
-    "perl $sev",
-    0,
-    NORMAL_PRIORITY_CLASS | DETACHED_PROCESS,
-    "."
-  ) or warn 'could not execute severancer: '.Win32::FormatMessage(Win32::GetLastError());
+  eval q{
+    Win32::Process::Create(
+      $p,
+      $x,
+      "perl $sev",
+      0,
+      NORMAL_PRIORITY_CLASS | DETACHED_PROCESS,
+      "."
+    ) or warn 'could not execute severancer: '.Win32::FormatMessage(Win32::GetLastError());
+  }
 }
 
 ### posix_start () #############################################################

patrick-canterino.de