minix/lib/syslib/sys_exit.c

16 lines
455 B
C
Raw Normal View History

2005-04-21 16:53:53 +02:00
#include "syslib.h"
/*===========================================================================*
* sys_exit *
*===========================================================================*/
PUBLIC int sys_exit(int status)
{
/* A server wants to exit. The exit status is passed on, possibly a panic.
*/
message m;
m.EXIT_STATUS = status;
return(_taskcall(SYSTASK, SYS_EXIT, &m));
/* NOT REACHED */
}