From ac26118001266b05d56653378afa0acfb4f3b25b Mon Sep 17 00:00:00 2001 From: mqudah Date: Sat, 6 Sep 2025 21:40:15 +0300 Subject: [PATCH] fix comment reference from man 7 signal to man 7 signal-safety (GH-138554) (cherry picked from commit 2f5ace780ba3880ce07c4aacbda08ebba36e3b4d) Co-authored-by: mqudah docs: fix comment reference from man 7 signal to man 7 signal-safety --- Modules/_posixsubprocess.c | 2 +- Modules/signalmodule.c | 2 +- Python/pylifecycle.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Modules/_posixsubprocess.c b/Modules/_posixsubprocess.c index daec4ad708dea4..b5326314677d62 100644 --- a/Modules/_posixsubprocess.c +++ b/Modules/_posixsubprocess.c @@ -628,7 +628,7 @@ reset_signal_handlers(const sigset_t *child_sigmask) * (v)fork to set things up and call exec(). * * All of the code in this function must only use async-signal-safe functions, - * listed at `man 7 signal` or + * listed at `man 7 signal-safety` or * http://www.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_04.html. * * This restriction is documented at diff --git a/Modules/signalmodule.c b/Modules/signalmodule.c index e279a2a0885fc0..3c7bea5d0c13d0 100644 --- a/Modules/signalmodule.c +++ b/Modules/signalmodule.c @@ -1933,7 +1933,7 @@ signal_install_handlers(void) /* Restore signals that the interpreter has called SIG_IGN on to SIG_DFL. * * All of the code in this function must only use async-signal-safe functions, - * listed at `man 7 signal` or + * listed at `man 7 signal-safety` or * http://www.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_04.html. * * If this function is updated, update also _posix_spawn() of subprocess.py. diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c index c79fe7a09cad66..01fd36e52fc11e 100644 --- a/Python/pylifecycle.c +++ b/Python/pylifecycle.c @@ -3599,7 +3599,7 @@ PyOS_getsig(int sig) /* * All of the code in this function must only use async-signal-safe functions, - * listed at `man 7 signal` or + * listed at `man 7 signal-safety` or * http://www.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_04.html. */ PyOS_sighandler_t