Skip to content
Merged
Changes from all commits
Commits
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
3 changes: 2 additions & 1 deletion src/BuiltInTools/HotReloadAgent.Host/StartupHook.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ internal sealed class StartupHook
&& !OperatingSystem.IsIOS()
&& !OperatingSystem.IsTvOS()
&& !OperatingSystem.IsBrowser();
private static readonly bool s_supportsPosixSignals = s_supportsConsoleColor;

#if NET10_0_OR_GREATER
private static PosixSignalRegistration? s_signalRegistration;
Expand Down Expand Up @@ -125,7 +126,7 @@ private static void RegisterSignalHandlers()
[DllImport("kernel32.dll", SetLastError = true)]
static extern bool SetConsoleCtrlHandler(Delegate? handler, bool add);
}
else
else if (s_supportsPosixSignals)
{
#if NET10_0_OR_GREATER
// Register a handler for SIGTERM to allow graceful shutdown of the application on Unix.
Expand Down
Loading