Console.Unix: fix missing terminal configuration on SIGINT/SIGQUIT/SIGCONT. (#64985)
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Thu, 11 Aug 2022 17:45:50 +0000 (10:45 -0700)
committerGitHub <noreply@github.com>
Thu, 11 Aug 2022 17:45:50 +0000 (10:45 -0700)
commit12e90e74e22c84c1fa282fb436c4328655842b58
tree6c0638048180417802bc205337a41b4d6b2083eb
parent510444c8ce032dc611e5e6c2079382921deb63a2
Console.Unix: fix missing terminal configuration on SIGINT/SIGQUIT/SIGCONT. (#64985)

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.

Co-authored-by: Tom Deseyn <tom.deseyn@gmail.com>
src/libraries/Native/Unix/System.Native/pal_signal.c