From: Daniel Hokka Zakrisson Date: Sat, 28 May 2011 19:29:02 +0000 (+0200) Subject: Figure out context with legacy APIs built-in X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09e68ea5be59e9f3824761e9f5ce602b058c458f;p=util-vserver.git Figure out context with legacy APIs built-in --- diff --git a/src/vkill.c b/src/vkill.c index d934197..5f5ace3 100644 --- a/src/vkill.c +++ b/src/vkill.c @@ -136,6 +136,9 @@ kill_wrapper_legacy(xid_t UNUSED xid, char const *proc, int UNUSED sig) static int kill_wrapper(xid_t xid, char const *pid, int sig) { + if (xid==VC_NOCTX) + xid = vc_get_task_xid(pid); + //printf("kill_wrapper(%u, %s, %i)\n", xid, pid, sig); if (vc_ctx_kill(xid,atoi(pid),sig)==-1) { int err = errno;