We have a qt5 program running under Alpine Linux v3.14 which uses a fragile legacy library which may cause the entire program to crash. Alpine Linux switches to framebuffer mode during start up. We compile the library from source but do not have the time to harden the code.
Our program runs in a Linux framebuffer device using qtprogram -platform linuxfb which works well, except that when the program crashes and returns to the shell, the framebuffer is not reset properly giving the incorrect impression that the program is still running but is non-responsive.
I would like to at least blank out the framebuffer and preferably switch back to the Linux console mode so we can see output from the invoking shell script.
How should I approach this?
SIGKILLis raised rather than one of the catchable ones). It's probably a good case for alongjmpto the termination code.