From a5d208c7d692263626f4eb56f41f494a5a924915 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Fri, 14 Apr 2017 16:07:02 -0400 Subject: [PATCH] libroot: abort() should behave like a crash, not just a 'failure' exit. Calling debugger() means that the crash dialog will be shown, and so users will not be left wondering why an app just spontenously disappeared. --- src/system/libroot/posix/stdlib/exit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/libroot/posix/stdlib/exit.cpp b/src/system/libroot/posix/stdlib/exit.cpp index 9d11b66098..9fba1eb25a 100644 --- a/src/system/libroot/posix/stdlib/exit.cpp +++ b/src/system/libroot/posix/stdlib/exit.cpp @@ -289,7 +289,7 @@ abort() fprintf(stderr, "Abort\n"); raise(SIGABRT); - exit(EXIT_FAILURE); + debugger("abort() called"); }