mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
PyOS_AfterFork_Child() uses PyStatus (GH-20596)
PyOS_AfterFork_Child() helper functions now return a PyStatus: PyOS_AfterFork_Child() is now responsible to handle errors. * Move _PySignal_AfterFork() to the internal C API * Add #ifdef HAVE_FORK on _PyGILState_Reinit(), _PySignal_AfterFork() and _PyInterpreterState_DeleteExceptMain().
This commit is contained in:
parent
297257f7bc
commit
26881c8fae
10 changed files with 84 additions and 50 deletions
|
@ -25,7 +25,7 @@ PyAPI_FUNC(int) _PyEval_AddPendingCall(
|
|||
void *arg);
|
||||
PyAPI_FUNC(void) _PyEval_SignalAsyncExc(PyThreadState *tstate);
|
||||
#ifdef HAVE_FORK
|
||||
extern void _PyEval_ReInitThreads(struct pyruntimestate *runtime);
|
||||
extern PyStatus _PyEval_ReInitThreads(struct pyruntimestate *runtime);
|
||||
#endif
|
||||
PyAPI_FUNC(void) _PyEval_SetCoroutineOriginTrackingDepth(
|
||||
PyThreadState *tstate,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue