Skip to content

Commit efc28bb

Browse files
authored
Add a comment to _Py_RestoreSignals() (GH-18792)
subprocess _posix_spawn() should stay in sync with _Py_RestoreSignals().
1 parent f7b5d41 commit efc28bb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Python/pylifecycle.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2374,6 +2374,8 @@ init_signals(PyThreadState *tstate)
23742374
* All of the code in this function must only use async-signal-safe functions,
23752375
* listed at `man 7 signal` or
23762376
* http://www.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_04.html.
2377+
*
2378+
* If this function is updated, update also _posix_spawn() of subprocess.py.
23772379
*/
23782380
void
23792381
_Py_RestoreSignals(void)

0 commit comments

Comments
 (0)