minix/lib/syslib/sys_exit.c
2005-04-21 14:53:53 +00:00

15 lines
455 B
C

#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 */
}