Hi!

How do I handle a SIGINT (or any other signal) avoid nesting?

Does this work?

class STATUS:
        InInt=False

def SIGINT_handler(sn,f):
        if STATUS.InInt: return
        STATUS.InInt=True
        process_int()
        STATUS.InInt=False

Thanks for any suggestions.
Paulo
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to