Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5b77c54

Browse files
committedFeb 24, 2025··
Updated exit code for windows forced-kill of sub-task
1 parent 50e650c commit 5b77c54

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎csharp/runner/SnippetRunner/Program.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,8 @@ static void ExecuteSnippet(string snippet,
538538
bool exited = process.WaitForExit(delay);
539539
if (!exited && !process.HasExited)
540540
{
541-
expectedExitValue = SigtermExitCode;
541+
expectedExitValue = (Environment.OSVersion.Platform == PlatformID.Win32NT)
542+
? 1 : SigtermExitCode;
542543
Console.WriteLine();
543544
Console.WriteLine("Runner destroying " + snippet + " process...");
544545

0 commit comments

Comments
 (0)
Please sign in to comment.