From 125b951aadec7a05dde8d72c10c5fb9b427bb018 Mon Sep 17 00:00:00 2001 From: lacatoire Date: Mon, 30 Mar 2026 14:07:24 +0200 Subject: [PATCH 1/3] Document missing RFTSIGZMB and RFTHREAD flags in pcntl_rfork() Also improve the signal parameter description to clarify its relationship with the RFTSIGZMB flag. --- reference/pcntl/functions/pcntl-rfork.xml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/reference/pcntl/functions/pcntl-rfork.xml b/reference/pcntl/functions/pcntl-rfork.xml index 720b43ef533a..3ad33cf6979c 100644 --- a/reference/pcntl/functions/pcntl-rfork.xml +++ b/reference/pcntl/functions/pcntl-rfork.xml @@ -51,6 +51,17 @@ RFLINUXTHPN: If set, the kernel will return SIGUSR1 instead of SIGCHILD upon thread exit for the child. This is intended to do Linux clone exit parent notification. + + RFTSIGZMB: If set, the kernel will deliver the signal specified + by the signal parameter to the parent upon the child exit, + instead of the default SIGCHLD. Specifying signal number 0 disables signal + delivery upon the child exit. + + + RFTHREAD: If set, the new process shares file descriptor + to process leaders table with its parent. Only applies when neither + RFFDG nor RFCFDG are set. + @@ -59,7 +70,9 @@ signal - The signal number. + The signal number to deliver to the parent when the child exits. + This is only used when the RFTSIGZMB flag is set. + Specifying 0 disables signal delivery upon the child exit. From d38b9194696ac475089bb26a5dfdfb9eb61bd7be Mon Sep 17 00:00:00 2001 From: Louis-Arnaud Date: Wed, 22 Apr 2026 14:55:59 +0200 Subject: [PATCH 2/3] Apply suggestions from code review Co-authored-by: Louis-Arnaud --- reference/pcntl/functions/pcntl-rfork.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reference/pcntl/functions/pcntl-rfork.xml b/reference/pcntl/functions/pcntl-rfork.xml index 3ad33cf6979c..e6cb2c82045a 100644 --- a/reference/pcntl/functions/pcntl-rfork.xml +++ b/reference/pcntl/functions/pcntl-rfork.xml @@ -69,11 +69,11 @@ signal - + The signal number to deliver to the parent when the child exits. This is only used when the RFTSIGZMB flag is set. Specifying 0 disables signal delivery upon the child exit. - + From 823a6071c80244ae5d5dbc905ba2d48cd8cfb46f Mon Sep 17 00:00:00 2001 From: lacatoire Date: Mon, 18 May 2026 21:11:15 +0200 Subject: [PATCH 3/3] Fix SIGCHILD typo in RFLINUXTHPN description --- reference/pcntl/functions/pcntl-rfork.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/pcntl/functions/pcntl-rfork.xml b/reference/pcntl/functions/pcntl-rfork.xml index e6cb2c82045a..e2442f57531c 100644 --- a/reference/pcntl/functions/pcntl-rfork.xml +++ b/reference/pcntl/functions/pcntl-rfork.xml @@ -48,7 +48,7 @@ Is mutually exclusive with RFFDG. - RFLINUXTHPN: If set, the kernel will return SIGUSR1 instead of SIGCHILD upon thread exit for the child. + RFLINUXTHPN: If set, the kernel will return SIGUSR1 instead of SIGCHLD upon thread exit for the child. This is intended to do Linux clone exit parent notification.