-
Notifications
You must be signed in to change notification settings - Fork 5.3k
[release/6.0] Console.Unix: fix missing terminal configuration on SIGINT/SIGQUIT/SGCONT. #64985
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
Conversation
…GCONT. The introduction of the managed API for signal handling (PosixSignal) inadvertently caused terminal configuration to no longer be performed when no managed handlers are registered. This adds back the unconditional registration for SIGINT/SIGQUIT/SIGCONT. The missing registrations can cause the terminal to stop echoing when an application terminates on Ctrl-C.
|
Tagging subscribers to this area: @dotnet/ncl Issue DetailsBackport of #64200 to release/6.0 /cc @adamsitnik @tmds Customer ImpactTestingRisk
|
|
Tagging subscribers to this area: @dotnet/area-system-console Issue DetailsBackport of #64200 to release/6.0 /cc @adamsitnik @tmds Customer ImpactTestingRisk
|
|
@ericstj @adamsitnik looks like this was missed, probably because it wasn't in an 6.0.x milestone and/or |
|
|
|
@akoeplinger the template has not yet been filled. I don't think we will be able to get this merged, since the deadline for the next servicing release is today, and it has not yet been approved by Tactics. Have you sent an email to Tactics? |
|
@carlossanlop I have not since I'm not driving this PR, I merely noticed this was sitting around for a month while I was going through the list of 6.0 PRs. |
|
Ah, my apologies @akoeplinger 😄 |
|
Thanks all. Due to several disruptions, we were not able to follow-through on getting this ready for consideration/approval. It'll have to carry over to the next servicing release. |
|
@jeffhandley is now a good time to consider this PR for the next servicing release, given that time passed? Just asking as I noticed that this PR is lying around. |
|
imo we are good to include this. |
|
@jeffhandley @jozkee @adamsitnik May 16th is the due date for Code Complete for June servicing. Do we want this to go through Tactics? |
|
closing this as it's static. if someone wants to champion - please recreate, with the usual template. |
|
I run into this issue, so I believe others do to. |
|
I am going to champion this issue. I've filled the template and sent an email. This is really annoying bug BTW ;) |
carlossanlop
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tactics approved.
Correct milestone applied.
CI failure is unrelated.
No OOB package authoring needed since this is native code.
Ready to merge.
Backport of #64200 to release/6.0
/cc @adamsitnik @tmds
Customer Impact
Customer reported that if a console app is waiting for keyboard input via
Console.Read, and the user quits the app with Ctrl-C, the terminal will be left in a broken state, and typing will not be displayed.This is due to a regression introduced in .NET 6 where we fail to re-enable input echoing on Ctrl+C.
Testing
Manually verified that this fix solves the problem.
Risk
Very low, as this change has been in main (7.0) for half year and no regressions or bugs were reported so far.