X-Git-Url: https://git.p6c8.net/selfforum.git/blobdiff_plain/4dc257b23e4bf070f9f3e2e53f02065437f77a55..8544f3b2302747931fdf46e3a28484ebc477bfa9:/selfforum-cgi/shared/Arc/Starter.pm?ds=sidebyside diff --git a/selfforum-cgi/shared/Arc/Starter.pm b/selfforum-cgi/shared/Arc/Starter.pm index 905a33a..ea923a7 100644 --- a/selfforum-cgi/shared/Arc/Starter.pm +++ b/selfforum-cgi/shared/Arc/Starter.pm @@ -4,7 +4,7 @@ package Arc::Starter; # # # File: shared/Arc/Starter.pm # # # -# Authors: Andre Malo , 2001-07-16 # +# Authors: André Malo # # # # 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 () #############################################################