sandbox: reinstate cooked terminal mode on sanitizer-induced death
If we exit due to AddressSanitizer error, we remain in raw mode, which
is not best user experience. Currently every exit is an AddressSanitizer
death due to leaks. We want to encourage users to always have ASan
enabled, to catch more errors, thus call cookmode() on exit.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 94fb245 commit 634b8a68b12de0c76a63763bb2fcb53558cd9e44
@Ahmad Fatoum Ahmad Fatoum authored on 6 Jul 2020
Sascha Hauer committed on 14 Jul 2020
Showing 2 changed files
View
arch/sandbox/os/Makefile
View
arch/sandbox/os/common.c