3.1.7 branch.
[minix.git] / kernel / system / do_exit.c
blobb344017f9bd7a0820a7511410fcc29f952f1f91e
1 /* The kernel call implemented in this file:
2 * m_type: SYS_EXIT
3 */
5 #include "kernel/system.h"
7 #include <minix/endpoint.h>
8 #include <signal.h>
10 #if USE_EXIT
12 /*===========================================================================*
13 * do_exit *
14 *===========================================================================*/
15 PUBLIC int do_exit(struct proc * caller, message * m_ptr)
17 /* Handle sys_exit. A system process has requested to exit. Generate a
18 * self-termination signal.
20 int sig_nr = SIGABRT;
22 cause_sig(caller->p_nr, sig_nr); /* send a signal to the caller */
24 return(EDONTREPLY); /* don't reply */
27 #endif /* USE_EXIT */