From: Daniel Hokka Zakrisson Date: Mon, 5 Feb 2007 20:40:22 +0000 (+0000) Subject: Try to figure out the xid if not specified. X-Git-Tag: release-0.30.214~116 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e9bcaaeb1d475f014a6cc2cc928915c4daf028b;p=util-vserver.git Try to figure out the xid if not specified. git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2489 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/src/vkill.c b/src/vkill.c index 489046f..02a8dc4 100644 --- a/src/vkill.c +++ b/src/vkill.c @@ -154,6 +154,8 @@ kill_wrapper(xid_t xid, char const *pid, int sig) inline static int kill_wrapper(xid_t xid, char const *pid, int sig) { + if (xid==VC_NOCTX) + xid = vc_get_task_xid(pid); if (vc_ctx_kill(xid,atoi(pid),sig)==-1) { perror("vkill: vc_ctx_kill()"); return 1;