blob: 718b3f9401b27f70e42e5d1df2616de655f49dac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
/* The kernel call implemented in this file:
* m_type: SYS_EXIT
*/
#include "kernel/system.h"
#include <signal.h>
#if USE_EXIT
/*===========================================================================*
* do_exit *
*===========================================================================*/
int do_exit(struct proc * caller, message * m_ptr)
{
/* Handle sys_exit. A system process has requested to exit. Generate a
* self-termination signal.
*/
int sig_nr = SIGABRT;
cause_sig(caller->p_nr, sig_nr); /* send a signal to the caller */
return(EDONTREPLY); /* don't reply */
}
#endif /* USE_EXIT */
|