-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Console.Unix: fix missing terminal configuration on SIGINT/SIGQUIT/SGCONT. #64200
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 DetailsThe introduction of the managed API for signal handling (PosixSignal) This adds back the unconditional registration for SIGINT/SIGQUIT/SIGCONT. The missing registrations can cause the terminal to stop echoing when an Regressed in #54136. cc @stephentoub @adamsitnik @danielbisar
|
Tagging subscribers to this area: @dotnet/area-system-console Issue DetailsThe introduction of the managed API for signal handling (PosixSignal) This adds back the unconditional registration for SIGINT/SIGQUIT/SIGCONT. The missing registrations can cause the terminal to stop echoing when an Regressed in #54136. cc @stephentoub @adamsitnik @danielbisar
|
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.
Thanks. Is there any reasonable way to add a test for this?
I thought about it, and it's not easy to write an automated test for this. A good test would have something other than .NET as a parent because .NET changes terminal settings also as child processes are created/reaped. |
@stephentoub @adamsitnik is this good to be merged? After it sat on |
Thanks, Tom. |
@tmds thanks for the fix! I am going to start the backport procedure now, as I expect that it will take us few weeks to get it merged /backport to release/6.0 |
/backport to release/6.0 |
Started backporting to release/6.0: https://github.com/dotnet/runtime/actions/runs/1812920689 |
I closed the backport PR as stale. cc @dotnet/area-system-console since @tmds is requesting we backport this. One of them would have to champion it, add the template, etc. |
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.
Regressed in #54136.
Fixes #64166.
cc @stephentoub @adamsitnik @danielbisar