From: Victor Stinner Date: Thu, 5 Mar 2020 17:13:56 +0000 (+0100) Subject: Add a comment to _Py_RestoreSignals() (GH-18792) X-Git-Tag: v3.9.0a5~171 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=efc28bbbeee07867669dfbf49385d6a2147fe631;p=thirdparty%2FPython%2Fcpython.git Add a comment to _Py_RestoreSignals() (GH-18792) subprocess _posix_spawn() should stay in sync with _Py_RestoreSignals(). --- diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c index 7fa165b73686..84ced424499d 100644 --- a/Python/pylifecycle.c +++ b/Python/pylifecycle.c @@ -2374,6 +2374,8 @@ init_signals(PyThreadState *tstate) * All of the code in this function must only use async-signal-safe functions, * listed at `man 7 signal` or * http://www.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_04.html. + * + * If this function is updated, update also _posix_spawn() of subprocess.py. */ void _Py_RestoreSignals(void)