示例#1
0
 def _at_exit_callback(*a_args, **a_kwargs):
     # just make sure we flush the internal state (the at exist caught by the external signal does the rest
     # in theory we should not have to do any of that, but for some reason if we do not
     # the signal is never caught by the signal call backs, not sure why....
     sleep(0.1)
     # noinspection PyProtectedMember, PyUnresolvedReferences
     return os._org_exit(*a_args, **a_kwargs)
示例#2
0
 def _at_exit_callback(*a_args, **a_kwargs):
     # call at exit manually
     # noinspection PyProtectedMember
     task._at_exit()
     # noinspection PyProtectedMember, PyUnresolvedReferences
     return os._org_exit(*a_args, **a_kwargs)
示例#3
0
 def _at_exit_callback(*args, **kwargs):
     # call at exit manually
     # noinspection PyProtectedMember
     task._at_exit()
     # noinspection PyProtectedMember
     return os._org_exit(*args, **kwargs)