From: Enrico Scholz Date: Fri, 25 Mar 2005 16:56:22 +0000 (+0000) Subject: address both the context and the pid when sending SIGINT to init X-Git-Tag: IPSENTINEL_VERSION_0_12~4 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77e9d3bb05341c5b6b9bdbafc8f486f1302be5f4;p=util-vserver.git 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 --- 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" -- } \