From 77e9d3bb05341c5b6b9bdbafc8f486f1302be5f4 Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Fri, 25 Mar 2005 16:56:22 +0000 Subject: [PATCH] address both the context and the pid when sending SIGINT to init git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1990 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- util-vserver/scripts/vserver.stop | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/util-vserver/scripts/vserver.stop b/util-vserver/scripts/vserver.stop index 40198b4..20fccaf 100644 --- a/util-vserver/scripts/vserver.stop +++ b/util-vserver/scripts/vserver.stop @@ -59,7 +59,9 @@ fail= if test -n "$_IS_FAKEINIT" && \ $_VSERVER_INFO - FEATURE vkill && \ initpid=$($_VSERVER_INFO "$S_CONTEXT" INITPID 2>/dev/null); then - $_VKILL -s INT -- "$initpid" || fail=1 + $_VKILL -s INT --xid "$C_CONTEXT" -- 1 "$initpid" || fail=1 + ## HACK: remove the 'initpid' stuff above when PID virtualization + ## is implemented elif $_VSERVER_INFO - FEATURE migrate; then "${NICE_CMD[@]}" \ ${USE_VNAMESPACE:+$_VNAMESPACE --enter "$S_CONTEXT" -- } \ -- 1.8.1.5