diff --git a/libs/libc/assert/lib_assert.c b/libs/libc/assert/lib_assert.c index 97bb7517b5e3f..5103c715860f6 100644 --- a/libs/libc/assert/lib_assert.c +++ b/libs/libc/assert/lib_assert.c @@ -27,16 +27,6 @@ #include #include -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -/* If assert() is called from kernel, must not call user API abort */ - -#ifdef __KERNEL__ -# define abort PANIC -#endif - /**************************************************************************** * Public Functions ****************************************************************************/ diff --git a/libs/libc/stdlib/lib_abort.c b/libs/libc/stdlib/lib_abort.c index 663e22427486c..e15508493e94e 100644 --- a/libs/libc/stdlib/lib_abort.c +++ b/libs/libc/stdlib/lib_abort.c @@ -63,8 +63,8 @@ void abort(void) * a conformant version of abort() at this time. This version does not * signal the calling thread all. * - * exit() will flush and close all open files and terminate the thread. + * _exit() will close all open files and terminate the thread. */ - exit(EXIT_FAILURE); + _exit(EXIT_FAILURE); }