From 09e68ea5be59e9f3824761e9f5ce602b058c458f Mon Sep 17 00:00:00 2001 From: Daniel Hokka Zakrisson Date: Sat, 28 May 2011 21:29:02 +0200 Subject: [PATCH] Figure out context with legacy APIs built-in --- src/vkill.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 1.8.1.5