pcntl_wexitstatus

(PHP 4 >= 4.1.0, PHP 5, PHP 7, PHP 8)

pcntl_wexitstatus — Devuelve el código de un proceso hijo terminado

Descripción

function pcntl_wexitstatus(int $status): int|false

Devuelve el código de retorno del proceso hijo. Esta función solo es útil si la función pcntl_wifexited() ha devuelto true.

Parámetros

status

El parámetro status es el parámetro status pasado a una llamada de pcntl_waitpid() que tuvo éxito.

Valores devueltos

Devuelve el código de retorno. Si la funcionalidad no es soportada por el sistema operativo, false es devuelto.

Véase también

  • pcntl_waitpid() - Espera la finalización de la ejecución de un proceso hijo
  • pcntl_wifexited() - Verifica si el código de retorno representa una finalización normal

User Contributed Notes

There are no user contributed notes for this page.
Adding new notes is disabled. Please see the links in the Found A Problem? section.
To Top