From 350d95443aeb0ea8751d71f262aac56d3ad48f83 Mon Sep 17 00:00:00 2001 From: Christoph Michael Becker Date: Wed, 29 Jul 2020 15:45:35 +0000 Subject: [PATCH] proc_close() automatically closes open pipes At least as of PHP 5.0.0. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350242 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/exec/functions/proc-close.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reference/exec/functions/proc-close.xml b/reference/exec/functions/proc-close.xml index d9c93aedd1..25422e75cc 100644 --- a/reference/exec/functions/proc-close.xml +++ b/reference/exec/functions/proc-close.xml @@ -18,8 +18,8 @@ except that it only works on processes opened by proc_open. proc_close waits for the process to terminate, and - returns its exit code. If you have open pipes to that process, you - should fclose them prior to calling this function in + returns its exit code. Open pipes to that process are closed + when this function is called, in order to avoid a deadlock - the child process may not be able to exit while the pipes are open.