killContext(): commented out the more correct
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Tue, 12 Apr 2005 21:52:16 +0000 (21:52 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Tue, 12 Apr 2005 21:52:16 +0000 (21:52 +0000)
(but not working) kill-sequence

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2024 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/scripts/functions

index 2aa5e02..6b89210 100644 (file)
@@ -577,8 +577,13 @@ function setDefaultTTY
 ## Usage: killContext <XID> [<SIG>]
 function killContext
 {
-    $_VKILL -s "${2:-9}" --xid "$1" 1 &>/dev/null || :
-    $_VKILL -s "${2:-9}" --xid "$1"   &>/dev/null || :
+    local sig=${2:-9}
+
+    #$_VKILL -s STOP   --xid "$1" 1 &>/dev/null || :
+    $_VKILL -s "$sig" --xid "$1" 1 &>/dev/null || :
+    $_VKILL -s "$sig" --xid "$1"   &>/dev/null || :
+    #$_VKILL -s "$sig" --xid "$1" 1 &>/dev/null || :
+    #$_VKILL -s CONT   --xid "$1" 1 &>/dev/null || :
 }
 
 ## Usage: pkgmgmt.guessStyle <vserver> <resultvar>