def forceRefresh(self): """Kills the client process.""" # expect someone to catch and restart this poor kill -9'd fella pid = os.getpid() logger.fatal("refresh display - killing pid %i" % pid) print " *\n * THIS CRASH IS INTENTIONAL! Please restart the application.\n *" os.kill(pid,9)
def shouldInterruptJavaScript(self): """Interrupt JavaScript execution (restarts process). This slot should be called when JavaScript execution seems to be taking too long. NOTE: this slot is called only in PySide >= 1.0.7. """ pid = os.getpid() logger.fatal("interrupting JavaScript execution - killing pid %i" % pid) print " *\n * THIS CRASH IS INTENTIONAL! Please restart the application.\n *" os.kill(pid,9) return True
def shouldInterruptJavaScript(self): """Interrupt JavaScript execution (restarts process). This slot should be called when JavaScript execution seems to be taking too long. NOTE: this slot is called only in PySide >= 1.0.7. """ pid = os.getpid() logger.fatal("interrupting JavaScript execution - killing pid %i" % pid) print " *\n * THIS CRASH IS INTENTIONAL! Please restart the application.\n *" os.kill(pid, 9) return True