Skip to content

Add breaking change documentation for .NET runtime SIGTERM signal handler removal #46599

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented Jun 6, 2025

Documents the breaking change introduced in .NET 10 Preview 5 where the runtime no longer provides default SIGTERM signal handlers on Unix systems and equivalent Windows console events.

Changes Made

  • New breaking change document: docs/core/compatibility/core-libraries/10.0/sigterm-signal-handler.md

    • Comprehensive documentation following established format and guidelines
    • Includes previous/new behavior descriptions, rationale, and migration guidance
    • Provides code example showing how to replicate old behavior using PosixSignalRegistration.Create
    • Lists affected APIs: AppDomain.ProcessExit and AssemblyLoadContext.Unloading
  • Updated index file: docs/core/compatibility/10.0.md

    • Added entry in Core .NET libraries table for proper categorization
  • Updated table of contents: docs/core/compatibility/toc.yml

    • Added navigation entry for the new document

Key Information

  • Version: .NET 10 Preview 5
  • Type: Behavioral change
  • Impact: Applications relying on automatic SIGTERM handling may not receive ProcessExit/Unloading events
  • Mitigation: Use higher-level APIs (ASP.NET Core, UseConsoleLifetime) or implement custom signal handlers

The documentation helps developers understand this breaking change and provides clear guidance on how to adapt their applications.

Fixes #46226.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.


Internal previews

📄 File 🔗 Preview link
docs/core/compatibility/10.0.md Breaking changes in .NET 10
docs/core/compatibility/core-libraries/10.0/sigterm-signal-handler.md .NET runtime no longer provides default SIGTERM signal handler
docs/core/compatibility/toc.yml docs/core/compatibility/toc

@Copilot Copilot AI changed the title [WIP] [Breaking change]: .NET runtime no longer provides default SIGTERM signal handler Add breaking change documentation for .NET runtime SIGTERM signal handler removal Jun 6, 2025
@Copilot Copilot AI requested a review from gewarren June 6, 2025 23:29
@gewarren gewarren marked this pull request as ready for review June 7, 2025 00:16
@gewarren gewarren requested a review from a team as a code owner June 7, 2025 00:16
@gewarren gewarren requested a review from jkotas June 7, 2025 00:16
Copy link
Member

@jkotas jkotas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Breaking change]: .NET runtime no longer provides default SIGTERM signal handler
3 participants