Skip to content

Commit d464aa6

Browse files
committed
Fix error printing on windows process fork
1 parent f97242e commit d464aa6

File tree

1 file changed

+2
-2
lines changed
  • cogkit/modules/provider-coaster/resources

1 file changed

+2
-2
lines changed

cogkit/modules/provider-coaster/resources/worker.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3253,8 +3253,8 @@ sub execPortable {
32533253
exit(-1);
32543254
}
32553255
if (!Win32::Process::Create($process, $executable, $cmdline, 0, NORMAL_PRIORITY_CLASS(), ".")) {
3256-
my $errno = $!;
3257-
wlog DEBUG, "Failed to create process: $!\n";
3256+
my $err = Win32::FormatMessage(Win32::GetLastError());
3257+
wlog DEBUG, "Failed to create process: $err\n";
32583258
return;
32593259
}
32603260
my $pid = $process->GetProcessID();

0 commit comments

Comments
 (0)