def set_in_sighandler(value):
 global _in_sighandler
 _in_sighandler = value

def set_in_sighandler ( value ) : global _in_sighandler _in_sighandler = value
set flag signifiying that were inside a signal handler .