X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=lib%2Fpython%2FComponents%2FConsole.py;h=a41317eabc2b66c2d7f1159e760a6412038ae0b9;hb=fab31898f5892e9841b5c4f24fe505bd216e0ab2;hp=f1f3fd9514ee532858a6d07e3b286cfd8091a35f;hpb=bbfcb7ea1f040d030277e2b6f2efa9ea0967bf2b;p=vuplus_dvbapp diff --git a/lib/python/Components/Console.py b/lib/python/Components/Console.py old mode 100644 new mode 100755 index f1f3fd9..a41317e --- a/lib/python/Components/Console.py +++ b/lib/python/Components/Console.py @@ -55,3 +55,12 @@ class Console(object): if self.callbacks[name]: self.callbacks[name](data,retval,extra_args) del self.callbacks[name] + + def kill(self,name): + if name in self.appContainers: + print "[Console] killing: ",self.appContainers[name] + self.appContainers[name].kill() + + def killAll(self): + for name in self.appContainers: + self.kill(name)