PluginSystem: implement new PluginDescriptor option "needsRestart" to define if a...
[enigma2.git] / lib / python / Components / Console.py
old mode 100644 (file)
new mode 100755 (executable)
index f1f3fd9..a41317e
@@ -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)