source: trunk/minix/lib/syslib/sys_exit.c@ 10

Last change on this file since 10 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 615 bytes
Line 
1#include "syslib.h"
2
3/*===========================================================================*
4 * sys_exit *
5 *===========================================================================*/
6PUBLIC int sys_exit(proc)
7int proc; /* which process has exited */
8{
9/* A process has exited. PM tells the kernel. In addition this call can be
10 * used by system processes to directly exit without passing through the
11 * PM. This should be used with care to prevent inconsistent PM tables.
12 */
13 message m;
14
15 m.PR_ENDPT = proc;
16 return(_taskcall(SYSTASK, SYS_EXIT, &m));
17}
Note: See TracBrowser for help on using the repository browser.