bsod: restore vt on SIGTERM/SIGINT
authorFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 3 Nov 2023 10:05:30 +0000 (11:05 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 3 Nov 2023 16:06:56 +0000 (16:06 +0000)
commitf742f4176c495b87859d3afb79299e100c6ab23b
treecd0e235ade166ca9d154dafa26ebb1db0fd63204
parent7636caf5b32d98b094f2830f52ff5c46e3a22a68
bsod: restore vt on SIGTERM/SIGINT

Let's install a simple no-op signal handler without SA_RESTART for
SIGINT/SIGTERM, which allows us to interrupt read_one_char() and follow
it up with a proper cleanup, including restoring the vt to the original
state.

Resolves: #29478
src/journal/bsod.c