__aeabi_ldivmod: fix sign logic
[minix.git] / kernel / system / do_exit.c
blob718b3f9401b27f70e42e5d1df2616de655f49dac
1 /* The kernel call implemented in this file:
2 * m_type: SYS_EXIT
3 */
5 #include "kernel/system.h"
7 #include <signal.h>
9 #if USE_EXIT
11 /*===========================================================================*
12 * do_exit *
13 *===========================================================================*/
14 int do_exit(struct proc * caller, message * m_ptr)
16 /* Handle sys_exit. A system process has requested to exit. Generate a
17 * self-termination signal.
19 int sig_nr = SIGABRT;
21 cause_sig(caller->p_nr, sig_nr); /* send a signal to the caller */
23 return(EDONTREPLY); /* don't reply */
26 #endif /* USE_EXIT */