]> git.p6c8.net - selfforum.git/blobdiff - selfforum-cgi/shared/Arc/Starter.pm
now the (new) purge method of the lock file is called after removing a thread file
[selfforum.git] / selfforum-cgi / shared / Arc / Starter.pm
index a912d94eff5c2272cef9bdac441b6023cc215ec3..ea923a7dd2a449fc8492ea180b6818fb158ac939 100644 (file)
@@ -13,7 +13,6 @@ package Arc::Starter;
 use strict;
 use vars qw(
   @EXPORT
-  $VERSION
 );
 
 ################################################################################
@@ -49,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