minix/lib/syslib/sys_xit.c

18 lines
614 B
C
Raw Normal View History

2005-04-21 16:53:53 +02:00
#include "syslib.h"
/*===========================================================================*
* sys_xit *
*===========================================================================*/
2005-06-24 18:19:41 +02:00
PUBLIC int sys_xit(proc)
2005-04-21 16:53:53 +02:00
int proc; /* which process has exited */
{
2005-06-24 18:19:41 +02:00
/* A process has exited. PM tells the kernel. In addition this call can be
* used by system processes to directly exit without passing through the
* PM. This should be used with care to prevent inconsistent PM tables.
*/
2005-04-21 16:53:53 +02:00
message m;
m.PR_PROC_NR = proc;
return(_taskcall(SYSTASK, SYS_XIT, &m));
}