Skip to content
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

Host shutdown mistakes #42655

Open
bravequickcleverfibreyarn opened this issue Sep 18, 2024 · 0 comments
Open

Host shutdown mistakes #42655

bravequickcleverfibreyarn opened this issue Sep 18, 2024 · 0 comments
Labels
dotnet-fundamentals/svc Pri1 High priority, do before Pri2 and Pri3 ⌚ Not Triaged Not triaged

Comments

@bravequickcleverfibreyarn
Copy link
Contributor

Type of issue

Missing information

Description

From

Host shutdown

  1. I deem "SIGTERM is also raised" should be "ProcessExit is also raised".
  2. This appear somewhat melded.

Since ConsoleLifetime blocked ProcessExit while waiting for the host to shut down, this behavior led to deadlocks from Environment.Exit also blocks waiting for the call to ProcessExit.

I went through code and linked issue and I am not 100 % sure but it should be something like:

"Environment.Exit fired ProcessExit and ConsoleLifetime blocked waiting to host stop which in turn was not possible because host was waiting to finish Environment.Exit, a deadlock.".

Page URL

https://learn.microsoft.com/en-us/dotnet/core/extensions/generic-host?tabs=hostbuilder

Content source URL

https://github.com/dotnet/docs/blob/main/docs/core/extensions/generic-host.md

Document Version Independent Id

22a12ff8-d2ff-a841-b9bb-e2fd1032bc04

Article author

@IEvangelist

Metadata

  • ID: d43ecd7c-307a-688e-d533-c1135bde65f9
  • Service: dotnet-fundamentals
@issues-automation issues-automation bot added dotnet-fundamentals/svc Pri1 High priority, do before Pri2 and Pri3 labels Sep 18, 2024
@dotnet-bot dotnet-bot added the ⌚ Not Triaged Not triaged label Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dotnet-fundamentals/svc Pri1 High priority, do before Pri2 and Pri3 ⌚ Not Triaged Not triaged
Projects
None yet
Development

No branches or pull requests

2 participants