address both the context and the pid when sending SIGINT to init
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Fri, 25 Mar 2005 16:56:22 +0000 (16:56 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Fri, 25 Mar 2005 16:56:22 +0000 (16:56 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1990 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/scripts/vserver.stop

index 40198b4..20fccaf 100644 (file)
@@ -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" -- } \