X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=util-vserver%2Flib%2Fsyscall_kill.c;h=719e9bdfea8b6b95adc341fcd0df6077c779e5b8;hb=01f3841dc726ece7cac0dc66e9e01aee6cca66d9;hp=0e7fdf685a8f7cc716c09d97409d38c2794b7ccf;hpb=f2366c490d44f1bdb230a0ec6732ccfeac1445e4;p=util-vserver.git diff --git a/util-vserver/lib/syscall_kill.c b/util-vserver/lib/syscall_kill.c index 0e7fdf6..719e9bd 100644 --- a/util-vserver/lib/syscall_kill.c +++ b/util-vserver/lib/syscall_kill.c @@ -22,17 +22,27 @@ #include "vserver.h" #include "vserver-internal.h" -#include "linuxvirtual.h" +#include "virtual.h" -#ifdef VC_ENABLE_API_V11 +#if defined(VC_ENABLE_API_V11) || defined(VC_ENABLE_API_V13) # include "syscall_kill-v11.hc" #endif +#ifdef VC_ENABLE_API_V13 +# define vc_ctx_kill_v13 vc_ctx_kill_v11 +#endif + + +#if defined(VC_ENABLE_API_V11) || defined(VC_ENABLE_API_V13) + + // NOTICE: the reverse order of V11 -> V13 is correct here since these are + // the same syscalls + int vc_ctx_kill(xid_t ctx, pid_t pid, int sig) { - CALL_VC(CALL_VC_V11(vc_ctx_kill, ctx, pid, sig)); + CALL_VC(CALL_VC_V11(vc_ctx_kill, ctx, pid, sig), + CALL_VC_V13(vc_ctx_kill, ctx, pid, sig)); } -#if defined (VC_ENABLE_API_V11) #endif