mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-29 13:28:27 +00:00
syscall: add sys_kill
Signed-off-by: Andrey Vagin <avagin@openvz.org> Acked-by: Pavel Emelyanov <xemul@parallels.com> Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
This commit is contained in:
parent
e6968f4b08
commit
c8edb0c7e6
@ -23,6 +23,7 @@
|
||||
#define __NR_clone 56
|
||||
#define __NR_exit 60
|
||||
#define __NR_wait4 61
|
||||
#define __NR_kill 62
|
||||
#define __NR_flock 73
|
||||
#define __NR_unlink 87
|
||||
#define __NR_tgkill 131
|
||||
|
@ -284,6 +284,11 @@ static void always_inline local_sleep(long seconds)
|
||||
sys_nanosleep(&req, &rem);
|
||||
}
|
||||
|
||||
static long always_inline sys_kill(long pid, int sig)
|
||||
{
|
||||
return syscall2(__NR_kill, pid, (long)sig);
|
||||
}
|
||||
|
||||
static long always_inline sys_tgkill(long tgid, long pid, int sig)
|
||||
{
|
||||
return syscall3(__NR_tgkill, tgid, pid, (long)sig);
|
||||
|
Loading…
x
Reference in New Issue
Block a user