Skip to content
Draft
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Timeout when waiting for process exit
  • Loading branch information
jjonescz committed Aug 26, 2025
commit fe2a02122d92e0fa5db361b3b35d2c3867b93645
3 changes: 2 additions & 1 deletion src/Cli/dotnet/BuildServer/UnifiedBuildServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ public Task ShutdownAsync()

// Wait for the process to exit.
using var process = Process.GetProcessById(pid);
await process.WaitForExitAsync().ConfigureAwait(false);
var timeout = new CancellationTokenSource(TimeSpan.FromMinutes(1)).Token;
await process.WaitForExitAsync(timeout).ConfigureAwait(false);
}
catch (Exception ex) when (ex is not GracefulException)
{
Expand Down
Loading