PHP Conference Fukuoka 2025

Constantes predefinidas

La lista siguiente representa los señales soportadas por las funciones de gestión de procesos. Consulte el manual de su sistema (signal(7)) para más detalles sobre estas señales.

Constantes de control del proceso
WNOHANG (int)
WUNTRACED (int)
WCONTINUED (int)
WEXITED (int)
WSTOPPED (int)
WNOWAIT (int)
SIGCKPT (int)
Genera/restituye un punto de control. Disponible a partir de PHP 8.4.0 (uniquely on DragonFlyBSD).
SIGCKPTEXIT (int)
Genera/restituye un punto de control y sale. Disponible a partir de PHP 8.4.0 (uniquely on DragonFlyBSD).
Las constantes SIG_*
SIG_IGN (int)
SIG_DFL (int)
SIG_ERR (int)
SIGHUP (int)
SIGINFO (int)
SIGINT (int)
SIGQUIT (int)
SIGILL (int)
SIGTRAP (int)
SIGABRT (int)
SIGIOT (int)
SIGBUS (int)
SIGFPE (int)
SIGKILL (int)
SIGUSR1 (int)
SIGSEGV (int)
SIGUSR2 (int)
SIGPIPE (int)
SIGALRM (int)
SIGTERM (int)
SIGSTKFLT (int)
SIGCLD (int)
SIGCHLD (int)
SIGCONT (int)
SIGSTOP (int)
SIGTSTP (int)
SIGTTIN (int)
SIGTTOU (int)
SIGURG (int)
SIGXCPU (int)
SIGXFSZ (int)
SIGVTALRM (int)
SIGPROF (int)
SIGWINCH (int)
SIGPOLL (int)
SIGIO (int)
SIGPWR (int)
SIGSYS (int)
SIGBABY (int)
SIGRTMIN (int)
SIGRTMAX (int)
SIG_BLOCK (int)
SIG_UNBLOCK (int)
SIG_SETMASK (int)
Las constantes SI_*
SI_USER (int)
SI_NOINFO (int)
SI_KERNEL (int)
SI_QUEUE (int)
SI_TIMER (int)
SI_MSGGQ (int)
SI_ASYNCIO (int)
SI_SIGIO (int)
SI_TKILL (int)
SI_MESGQ (int)
Las constantes CLD_*
CLD_EXITED (int)
CLD_KILLED (int)
CLD_DUMPED (int)
CLD_TRAPPED (int)
CLD_STOPPED (int)
CLD_CONTINUED (int)
Las constantes TRAP_*
TRAP_BRKPT (int)
TRAP_TRACE (int)
Las constantes POLL_*
POLL_IN (int)
POLL_OUT (int)
POLL_MSG (int)
POLL_ERR (int)
POLL_PRI (int)
POLL_HUP (int)
Las constantes ILL_*
ILL_ILLOPC (int)
ILL_ILLOPN (int)
ILL_ILLADR (int)
ILL_ILLTRP (int)
ILL_PRVOPC (int)
ILL_PRVREG (int)
ILL_COPROC (int)
ILL_BADSTK (int)
Las constantes FPE_*
FPE_INTDIV (int)
FPE_INTOVF (int)
FPE_FLTDIV (int)
FPE_FLTOVF (int)
FPE_FLTUND (int)
FPE_FLTRES (int)
FPE_FLTINV (int)
FPE_FLTSUB (int)
Las constantes SEGV_*
SEGV_MAPERR (int)
SEGV_ACCERR (int)
Las constantes BUS_*
BUS_ADRALN (int)
BUS_ADRERR (int)
BUS_OBJERR (int)
Las constantes CLONE_*
CLONE_NEWNS (int)
Disponible a partir de PHP 7.4.0
CLONE_NEWIPC (int)
Disponible a partir de PHP 7.4.0
CLONE_NEWUTS (int)
Disponible a partir de PHP 7.4.0
CLONE_NEWNET (int)
Disponible a partir de PHP 7.4.0
CLONE_NEWPID (int)
Disponible a partir de PHP 7.4.0
CLONE_NEWUSER (int)
Disponible a partir de PHP 7.4.0
CLONE_NEWCGROUP (int)
Disponible a partir de PHP 7.4.0
Las constantes PRIO_*
PRIO_PGRP (int)
PRIO_USER (int)
PRIO_PROCESS (int)
PRIO_DARWIN_BG (int)
Disponible a partir de PHP 8.1.0.
PRIO_DARWIN_THREAD (int)
Disponible a partir de PHP 8.1.0.
Constantes de error de control de proceso
Constantes Descripción
PCNTL_E2BIG (int) Lista de argumentos demasiado larga
PCNTL_EACCES (int) Permiso denegado
PCNTL_EAGAIN (int) Recurso temporalmente no disponible
PCNTL_ECAPMODE (int) El proceso ha intentado una operación no autorizada en modo capacitario mientras se ejecutaba en modo capacitario.
PCNTL_ECHILD (int) Ningún proceso hijo
PCNTL_EFAULT (int) Dirección incorrecta
PCNTL_EINTR (int) Llamada de función interrumpida
PCNTL_EINVAL (int) Argumento no válido
PCNTL_EIO (int) Error de entrada/salida
PCNTL_EISDIR (int) Es un directorio
PCNTL_ELIBBAD (int) Acceso a una biblioteca compartida corrupta.
PCNTL_ELOOP (int) Demasiados niveles de enlaces simbólicos
PCNTL_EMFILE (int) Demasiados ficheros abiertos. Comúnmente causado por exceder el límite de recurso RLIMIT_NOFILE. También puede ser causado por exceder el límite especificado en /proc/sys/fs/nr_open.
PCNTL_ENAMETOOLONG (int) Nombre de fichero demasiado largo
PCNTL_ENFILE (int) Demasiados ficheros abiertos en el sistema. En Linux, esto probablemente se debe al encuentro con el límite /proc/sys/fs/file-max.
PCNTL_ENOENT (int) Ningún fichero o directorio de ese tipo. Típicamente, este error ocurre cuando una ruta de acceso especificada no existe, o cuando uno de los componentes en el prefijo de directorio de una ruta de acceso no existe, o cuando la ruta de acceso especificada es un enlace simbólico pendiente.
PCNTL_ENOEXEC (int) Error de formato de ejecución
PCNTL_ENOMEM (int) Espacio insuficiente/imposible asignar memoria
PCNTL_ENOSPC (int) No hay espacio disponible en el dispositivo
PCNTL_ENOTDIR (int) No es un directorio
PCNTL_EPERM (int) Operación no permitida
PCNTL_ESRCH (int) Ningún proceso encontrado
PCNTL_ETXTBSY (int) Fichero de texto ocupado
PCNTL_EUSERS (int) Demasiados usuarios
FORK_* constants
FORK_NOSIGCHLD (int)
FORK_WAITPID (int)
RF* constants
RFCFDG (int)
RFFDG (int)
RFLINUXTHPN (int)
RFNOWAIT (int)
RFPROC (int)
RFTHREAD (int)
RFTSIGZMB (int)
Primer argumento de waitid (idtype)
P_ALL (int)
Seleccionar cualquier hijo.
P_PID (int)
Seleccionar por ID de proceso.
P_PGID (int)
Seleccionar por ID de grupo de procesos.
P_PIDFD (int)
Seleccionar por descriptor de fichero PID. Específico de Linux (desde Linux 5.4).
P_UID (int)
Seleccionar por ID de usuario efectivo. Específico de NetBSD y FreeBSD.
P_GID (int)
Seleccionar por ID de grupo efectivo. Específico de NetBSD y FreeBSD.
P_SID (int)
Seleccionar por ID de sesión. Específico de NetBSD y FreeBSD.
P_JAILID (int)
Seleccionar por identificador de jail. Específico de FreeBSD.
add a note

User Contributed Notes 3 notes

up
7
coder dot ua at gmail dot com
11 years ago
You should see all signals and their codes in your system using: kill -lIn my Debian GNU/Linux 7.6 (wheezy): 1) SIGHUP       2) SIGINT       3) SIGQUIT      4) SIGILL       5) SIGTRAP 6) SIGABRT      7) SIGBUS       8) SIGFPE       9) SIGKILL     10) SIGUSR111) SIGSEGV     12) SIGUSR2     13) SIGPIPE     14) SIGALRM     15) SIGTERM16) SIGSTKFLT   17) SIGCHLD     18) SIGCONT     19) SIGSTOP     20) SIGTSTP21) SIGTTIN     22) SIGTTOU     23) SIGURG      24) SIGXCPU     25) SIGXFSZ26) SIGVTALRM   27) SIGPROF     28) SIGWINCH    29) SIGIO       30) SIGPWR31) SIGSYS      34) SIGRTMIN    35) SIGRTMIN+1  36) SIGRTMIN+2  37) SIGRTMIN+338) SIGRTMIN+4  39) SIGRTMIN+5  40) SIGRTMIN+6  41) SIGRTMIN+7  42) SIGRTMIN+843) SIGRTMIN+9  44) SIGRTMIN+10 45) SIGRTMIN+11 46) SIGRTMIN+12 47) SIGRTMIN+1348) SIGRTMIN+14 49) SIGRTMIN+15 50) SIGRTMAX-14 51) SIGRTMAX-13 52) SIGRTMAX-1253) SIGRTMAX-11 54) SIGRTMAX-10 55) SIGRTMAX-9  56) SIGRTMAX-8  57) SIGRTMAX-758) SIGRTMAX-6  59) SIGRTMAX-5  60) SIGRTMAX-4  61) SIGRTMAX-3  62) SIGRTMAX-263) SIGRTMAX-1  64) SIGRTMAX
up
3
eclecticrob at gmail dot com
13 years ago
On OS X, the values of the constants are:SIGHUP = 1SIGINT = 2SIGQUIT = 3SIGILL = 4SIGTRAP = 5SIGABRT = 6SIGIOT = 6SIGBUS = 10SIGFPE = 8SIGUSR1 = 30SIGSEGV = 11SIGUSR2 = 31SIGPIPE = 13SIGALRM = 14SIGTERM = 15SIGSTKFLT not defined SIGCLD not defined SIGCHLD = 20SIGCONT = 19SIGTSTP = 18SIGTTIN = 21SIGTTOU = 22SIGURG = 16SIGXCPU = 24SIGXFSZ = 25SIGVTALRM = 26SIGPROF = 27SIGWINCH = 28SIGPOLL not defined SIGIO = 23SIGPWR not defined SIGSYS = 12SIGBABY = 12SIG_BLOCK = 1SIG_UNBLOCK = 2SIG_SETMASK = 3
up
-1
eclecticrob at gmail dot com
13 years ago
On RedHat, the values of the constants are:Signal SIGHUP = 1Signal SIGINT = 2Signal SIGQUIT = 3Signal SIGILL = 4Signal SIGTRAP = 5Signal SIGABRT = 6Signal SIGIOT = 6Signal SIGBUS = 7Signal SIGFPE = 8Signal SIGUSR1 = 10Signal SIGSEGV = 11Signal SIGUSR2 = 12Signal SIGPIPE = 13Signal SIGALRM = 14Signal SIGTERM = 15Signal SIGSTKFLT = 16Signal SIGCLD = 17Signal SIGCHLD = 17Signal SIGCONT = 18Signal SIGTSTP = 20Signal SIGTTIN = 21Signal SIGTTOU = 22Signal SIGURG = 23Signal SIGXCPU = 24Signal SIGXFSZ = 25Signal SIGVTALRM = 26Signal SIGPROF = 27Signal SIGWINCH = 28Signal SIGPOLL = 29Signal SIGIO = 29Signal SIGPWR = 30Signal SIGSYS = 31Signal SIGBABY = 31Signal SIG_BLOCK = 0Signal SIG_UNBLOCK = 1Signal SIG_SETMASK = 2
To Top