-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Finally block isn't executed upon Ctrl+C #23786
Copy link
Copy link
Open
Labels
Needs-TriageThe issue is new and needs to be triaged by a work group.The issue is new and needs to be triaged by a work group.WG-Enginecore PowerShell engine, interpreter, and runtimecore PowerShell engine, interpreter, and runtimeWG-NeedsReviewNeeds a review by the labeled Working GroupNeeds a review by the labeled Working Group
Metadata
Metadata
Assignees
Labels
Needs-TriageThe issue is new and needs to be triaged by a work group.The issue is new and needs to be triaged by a work group.WG-Enginecore PowerShell engine, interpreter, and runtimecore PowerShell engine, interpreter, and runtimeWG-NeedsReviewNeeds a review by the labeled Working GroupNeeds a review by the labeled Working Group
Prerequisites
Steps to reproduce
Running it:
conhost cmd /k pwsh -f test.ps1, then hitting Ctrl+C afterSleeping...shows up, I only seeFinally...about 1 out 10 runs.Expected behavior
Error details
N/AEnvironment data