Why don't my signal handlers work?

The most common problem is that the registered signal handler is declared with the wrong argument list. It is called as

handler(signum, frame)

so it should be declared with two arguments:

def handler(signum, frame):
    ...

CATEGORY: library

 

A Django site. this page was rendered by a django application in 0.00s 2012-02-13 09:24:01.659433. hosted by webfaction.