From 17ea7c5b7f7544fb42175419e8d9305b065bcf37 Mon Sep 17 00:00:00 2001 From: Mohammed AlQudah Date: Fri, 5 Sep 2025 20:04:16 +0300 Subject: [PATCH] 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 bd78a46c8d798f..0219a3360fd6b1 100644 --- a/Modules/_posixsubprocess.c +++ b/Modules/_posixsubprocess.c @@ -630,7 +630,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 59b08e28d7b5cb..02bfdab957fc52 100644 --- a/Modules/signalmodule.c +++ b/Modules/signalmodule.c @@ -1943,7 +1943,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 b6b1d2845ec2f1..51a777077d8255 100644 --- a/Python/pylifecycle.c +++ b/Python/pylifecycle.c @@ -3595,7 +3595,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