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:
@@ -146,7 +146,7 @@ static struct uspace_program_args const *gProgramArgs;
|
|||||||
#define FATAL(x,y...) \
|
#define FATAL(x,y...) \
|
||||||
if (x) { \
|
if (x) { \
|
||||||
dprintf("rld.so: " y); \
|
dprintf("rld.so: " y); \
|
||||||
_kern_exit(0); \
|
_kern_exit_team(0); \
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
@@ -167,7 +167,7 @@ dprintf(const char *format, ...)
|
|||||||
#define FATAL(x,y...) \
|
#define FATAL(x,y...) \
|
||||||
if (x) { \
|
if (x) { \
|
||||||
printf("rld.so: " y); \
|
printf("rld.so: " y); \
|
||||||
_kern_exit(0); \
|
_kern_exit_team(0); \
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -1,14 +1,10 @@
|
|||||||
/*
|
/*
|
||||||
** Copyright 2002-2004, The Haiku Team. All rights reserved.
|
* Copyright 2004, Haiku Inc. All rights reserved.
|
||||||
** Distributed under the terms of the Haiku License.
|
* Distributed under the terms of the MIT License.
|
||||||
**
|
*
|
||||||
** Author(s): Daniel Reinhold ([email protected])
|
* Author(s):
|
||||||
** Axel Dörfler, [email protected]
|
* Daniel Reinhold, [email protected]
|
||||||
**
|
* Axel Dörfler, [email protected]
|
||||||
*/
|
|
||||||
|
|
||||||
/* implements the standard C library functions:
|
|
||||||
* abort, atexit, exit
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
@@ -62,6 +58,6 @@ exit(int status)
|
|||||||
_IO_cleanup();
|
_IO_cleanup();
|
||||||
|
|
||||||
// exit with status code
|
// exit with status code
|
||||||
_kern_exit(status);
|
_kern_exit_team(status);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user