projects
/
util-vserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
75ec49a
)
Figure out context with legacy APIs built-in
author
Daniel Hokka Zakrisson
<daniel@hozac.com>
Sat, 28 May 2011 19:29:02 +0000 (21:29 +0200)
committer
Daniel Hokka Zakrisson
<daniel@hozac.com>
Sat, 28 May 2011 19:29:02 +0000 (21:29 +0200)
src/vkill.c
patch
|
blob
|
history
diff --git
a/src/vkill.c
b/src/vkill.c
index
d934197
..
5f5ace3
100644
(file)
--- 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;