Skip to content

Potential shutdown deadlocks in Microsoft.Extensions.Hosting on Windows #117753

@jkotas

Description

@jkotas

Introduced by #116652 - see discussion in #116652 (comment).

  • We should keep the PosixSignalRegistrations alive to prevent them from getting finalized in case GC collects them during shutdown.

  • We may want to dispose PosixSignalRegistrations on a separate thread to avoid A-B/B-A deadlock between the thread trying dispose PosixSignalRegistration and the signal handler thread in case the signal is delivered while the application is shutting down

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions