]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add a comment to _Py_RestoreSignals() (GH-18792)
authorVictor Stinner <vstinner@python.org>
Thu, 5 Mar 2020 17:13:56 +0000 (18:13 +0100)
committerGitHub <noreply@github.com>
Thu, 5 Mar 2020 17:13:56 +0000 (18:13 +0100)
subprocess _posix_spawn() should stay in sync with _Py_RestoreSignals().

Python/pylifecycle.c

index 7fa165b736869bc5243764219993f7499d869699..84ced424499debd24108f0fa4d6acd4ba3745820 100644 (file)
@@ -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)