git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/branches/SYSCALL_SWITCH@307
94cd875c-1c1d-0410-91d2-
eb244daf1a30
$PROC = $ARGV[0];
# Grab the output from a context query against this process id
-open(PH, "/usr/sbin/chcontext --silent --ctx 1 cat /proc/$PROC/status 2>&1 |");
+open(PH, "@SBINDIR@/chcontext --silent --ctx 1 cat /proc/$PROC/status 2>&1 |");
# Loop through the output
while (<PH>) {
# Since we have the context and the process id, we can kill it
print " + Killing... ";
- `/usr/sbin/chcontext --ctx $1 kill $PROC`;
+ `@SBINDIR@/chcontext --ctx $1 kill $PROC`;
print "[done]\n";
} else {
exit;
}
if ($context != 1) {
- exec("/usr/sbin/chcontext --silent --ctx 1 $0 @ARGV");
+ exec("@SBINDIR@/chcontext --silent --ctx 1 $0 @ARGV");
print "Can not execute chcontext\n";
exit; # not reached
}