BenchmarkDotNet
BenchmarkDotNet copied to clipboard
[Feature Request] Add custom SIGTERM handler to support .NET behavior changes in .NET 10 Preview.5
trafficstars
There is a breaking changes announcement on .NET 10 Preview.5 about SIGTERM
https://learn.microsoft.com/en-us/dotnet/core/compatibility/core-libraries/10.0/sigterm-signal-handler
It seems BenchmarkDotNet using SIGTERM to killing child processes.
https://github.com/dotnet/BenchmarkDotNet/blob/de8ba0796cdeab18fd8abc4988864a134f6dae8f/src/BenchmarkDotNet/Extensions/ProcessExtensions.cs#L183-L184
So it's expected to be affected by this breaking changes.
(If SIGTERM handler is not explicitly registered. graceful shutdown with AppDomain::ProcessExit is not called)