Skip to content

Commit

Permalink
Return exit code from sub program (#6)
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Hanna <chris@beamable.com>
  • Loading branch information
cdhanna and chrisbeamable authored Aug 11, 2024
1 parent f123c55 commit 8f5f4ca
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Resources/Program.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,11 @@ using (Process? process = Process.Start(startInfo))
if (process is not null)
{
await process.WaitForExitAsync();
return process.ExitCode;
}
else
{
// unable to start process
return 1;
}
}

0 comments on commit 8f5f4ca

Please sign in to comment.