Searched refs:exitfunc (Results 1 – 5 of 5) sorted by relevance
43 exfunc = sys.exitfunc44 sys.exitfunc = self.h150 sys.exitfunc = exfunc
51 register(sys.exitfunc)52 sys.exitfunc = _run_exitfuncs
1720 PyObject *exitfunc = PySys_GetObject("exitfunc"); in call_sys_exitfunc() local1722 if (exitfunc) { in call_sys_exitfunc()1724 Py_INCREF(exitfunc); in call_sys_exitfunc()1726 res = PyEval_CallObject(exitfunc, (PyObject *)NULL); in call_sys_exitfunc()1733 Py_DECREF(exitfunc); in call_sys_exitfunc()
1745 PyObject *exitfunc = PySys_GetObject("exitfunc"); in call_sys_exitfunc() local1747 if (exitfunc) { in call_sys_exitfunc()1749 Py_INCREF(exitfunc); in call_sys_exitfunc()1751 res = PyEval_CallObject(exitfunc, (PyObject *)NULL); in call_sys_exitfunc()1758 Py_DECREF(exitfunc); in call_sys_exitfunc()