From 1e78d7ff9fb4fcfc77c73fdd932149d06fc3408b Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sat, 22 Jan 2005 17:34:57 +0000 Subject: [PATCH] That may be the wrong place, but R5's libroot prints 'Abort' when abort() was called. That's at least a helpful clue, when you see your program terminate spontaneously. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10951 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/libroot/posix/stdlib/exit.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/kernel/libroot/posix/stdlib/exit.c b/src/kernel/libroot/posix/stdlib/exit.c index 1cdcfc0917..465302acdc 100644 --- a/src/kernel/libroot/posix/stdlib/exit.c +++ b/src/kernel/libroot/posix/stdlib/exit.c @@ -25,6 +25,8 @@ static int32 sExitStackIndex = 0; void abort() { + fprintf(stderr, "Abort\n"); + raise(SIGABRT); exit(EXIT_FAILURE); }