minix/lib/libsys/srv_kill.c
Lionel Sambuc dbfa59164b Message type for PM_SRV_KILL
Change-Id: I2d74b68db2d006dd375732a7932f20c2cf6a342a
2014-07-28 17:05:42 +02:00

14 lines
228 B
C

#include "syslib.h"
#include <string.h>
int
srv_kill(pid_t pid, int sig)
{
message m;
memset(&m, 0, sizeof(m));
m.m_rs_pm_srv_kill.pid = pid;
m.m_rs_pm_srv_kill.nr = sig;
return _taskcall(PM_PROC_NR, PM_SRV_KILL, &m);
}