signal and threading
etpid(), signal.SIGINT) def doSomething(self): while not self.shd: pass def shutdown(self, signo, frm): self.shd = True if __name__ == '__main__': Runner() ~levon -- http://mail.python.org/mailman/listinfo/python-list
Re: signal and threading
this seems to be the solution: http://code.activestate.com/recipes/496735/ On Aug 25, 3:37 pm, "~levon" <[EMAIL PROTECTED]> wrote: > Hello group, > > in following example, a signal handler is registered and a thread > started. if I call self.doSomethin() directly