minix/lib/syslib/sys_kill.c

15 lines
302 B
C
Raw Normal View History

2005-04-21 16:53:53 +02:00
#include "syslib.h"
PUBLIC int sys_kill(proc, signr)
int proc; /* which proc has exited */
int signr; /* signal number: 1 - 16 */
{
/* A proc has to be signaled via MM. Tell the kernel. */
message m;
m.SIG_ENDPT = proc;
2005-04-21 16:53:53 +02:00
m.SIG_NUMBER = signr;
return(_taskcall(SYSTASK, SYS_KILL, &m));
}