[Python-checkins] Add a comment to _Py_RestoreSignals() (GH-18792)

Victor Stinner webhook-mailer at python.org
Thu Mar 5 12:14:03 EST 2020


https://github.com/python/cpython/commit/efc28bbbeee07867669dfbf49385d6a2147fe631
commit: efc28bbbeee07867669dfbf49385d6a2147fe631
branch: master
author: Victor Stinner <vstinner at python.org>
committer: GitHub <noreply at github.com>
date: 2020-03-05T18:13:56+01:00
summary:

Add a comment to _Py_RestoreSignals() (GH-18792)

subprocess _posix_spawn() should stay in sync with _Py_RestoreSignals().

files:
M Python/pylifecycle.c

diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c
index 7fa165b736869..84ced424499de 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)



More information about the Python-checkins mailing list