Now uses _kern_exit_team().

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10327 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2004-12-01 04:24:15 +00:00
parent 72013b22a5
commit 71463c834e
2 changed files with 9 additions and 13 deletions
+2 -2
View File
@@ -146,7 +146,7 @@ static struct uspace_program_args const *gProgramArgs;
#define FATAL(x,y...) \
if (x) { \
dprintf("rld.so: " y); \
_kern_exit(0); \
_kern_exit_team(0); \
}
void
@@ -167,7 +167,7 @@ dprintf(const char *format, ...)
#define FATAL(x,y...) \
if (x) { \
printf("rld.so: " y); \
_kern_exit(0); \
_kern_exit_team(0); \
}
#endif
+7 -11
View File
@@ -1,14 +1,10 @@
/*
** Copyright 2002-2004, The Haiku Team. All rights reserved.
** Distributed under the terms of the Haiku License.
**
** Author(s): Daniel Reinhold ([email protected])
** Axel Dörfler, [email protected]
**
*/
/* implements the standard C library functions:
* abort, atexit, exit
* Copyright 2004, Haiku Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*
* Author(s):
* Daniel Reinhold, [email protected]
* Axel Dörfler, [email protected]
*/
@@ -62,6 +58,6 @@ exit(int status)
_IO_cleanup();
// exit with status code
_kern_exit(status);
_kern_exit_team(status);
}