Example #1
0
 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)
Example #2
0
 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
Example #3
0
 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