From 156854824363bcaf412dfb666c8659696a45dec8 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 5 Mar 2020 17:39:25 +0100 Subject: [PATCH] Add a comment to _Py_RestoreSignals() It should stay in sync with subprocess _posix_spawn(). --- Python/pylifecycle.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c index 7fa165b736869b..84ced424499deb 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)