diff --git a/reference/exec/functions/proc-close.xml b/reference/exec/functions/proc-close.xml index b61cfba3ea..6dcee79c69 100644 --- a/reference/exec/functions/proc-close.xml +++ b/reference/exec/functions/proc-close.xml @@ -45,10 +45,24 @@ &reftitle.returnvalues; - Returns the termination status of the process that was run. + Returns the termination status of the process that was run. In case of + an error then -1 is returned. + + &reftitle.notes; + + Unix Only: + + proc_close is internally implemented using the + waitpid(3) system call. To obtain the real exit + status code the pcntl_wexitstatus function + should be used. + + + +