X-Git-Url: https://git.p6c8.net/selfforum.git/blobdiff_plain/4c546112940e0287213a91f4d06470e3318e1d67..8ee59d9d7ce698dc48659f95f1d7e90953117b48:/selfforum-cgi/shared/Arc/Starter.pm diff --git a/selfforum-cgi/shared/Arc/Starter.pm b/selfforum-cgi/shared/Arc/Starter.pm index a912d94..ea923a7 100644 --- a/selfforum-cgi/shared/Arc/Starter.pm +++ b/selfforum-cgi/shared/Arc/Starter.pm @@ -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 () #############################################################