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
9
coder dot ua at gmail dot com
10 years ago
You should see all signals and their codes in your system using: kill -l
In 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) SIGUSR1
11) SIGSEGV 12) SIGUSR2 13) SIGPIPE 14) SIGALRM 15) SIGTERM
16) SIGSTKFLT 17) SIGCHLD 18) SIGCONT 19) SIGSTOP 20) SIGTSTP
21) SIGTTIN 22) SIGTTOU 23) SIGURG 24) SIGXCPU 25) SIGXFSZ
26) SIGVTALRM 27) SIGPROF 28) SIGWINCH 29) SIGIO 30) SIGPWR
31) SIGSYS 34) SIGRTMIN 35) SIGRTMIN+1 36) SIGRTMIN+2 37) SIGRTMIN+3
38) SIGRTMIN+4 39) SIGRTMIN+5 40) SIGRTMIN+6 41) SIGRTMIN+7 42) SIGRTMIN+8
43) SIGRTMIN+9 44) SIGRTMIN+10 45) SIGRTMIN+11 46) SIGRTMIN+12 47) SIGRTMIN+13
48) SIGRTMIN+14 49) SIGRTMIN+15 50) SIGRTMAX-14 51) SIGRTMAX-13 52) SIGRTMAX-12
53) SIGRTMAX-11 54) SIGRTMAX-10 55) SIGRTMAX-9 56) SIGRTMAX-8 57) SIGRTMAX-7
58) SIGRTMAX-6 59) SIGRTMAX-5 60) SIGRTMAX-4 61) SIGRTMAX-3 62) SIGRTMAX-2
63) SIGRTMAX-1 64) SIGRTMAX
up
4
eclecticrob at gmail dot com
13 years ago
On OS X, the values of the constants are:

SIGHUP = 1
SIGINT = 2
SIGQUIT = 3
SIGILL = 4
SIGTRAP = 5
SIGABRT = 6
SIGIOT = 6
SIGBUS = 10
SIGFPE = 8
SIGUSR1 = 30
SIGSEGV = 11
SIGUSR2 = 31
SIGPIPE = 13
SIGALRM = 14
SIGTERM = 15
SIGSTKFLT not defined
SIGCLD not defined
SIGCHLD = 20
SIGCONT = 19
SIGTSTP = 18
SIGTTIN = 21
SIGTTOU = 22
SIGURG = 16
SIGXCPU = 24
SIGXFSZ = 25
SIGVTALRM = 26
SIGPROF = 27
SIGWINCH = 28
SIGPOLL not defined
SIGIO = 23
SIGPWR not defined
SIGSYS = 12
SIGBABY = 12
SIG_BLOCK = 1
SIG_UNBLOCK = 2
SIG_SETMASK = 3
up
-1
eclecticrob at gmail dot com
12 years ago
On RedHat, the values of the constants are:

Signal SIGHUP = 1
Signal SIGINT = 2
Signal SIGQUIT = 3
Signal SIGILL = 4
Signal SIGTRAP = 5
Signal SIGABRT = 6
Signal SIGIOT = 6
Signal SIGBUS = 7
Signal SIGFPE = 8
Signal SIGUSR1 = 10
Signal SIGSEGV = 11
Signal SIGUSR2 = 12
Signal SIGPIPE = 13
Signal SIGALRM = 14
Signal SIGTERM = 15
Signal SIGSTKFLT = 16
Signal SIGCLD = 17
Signal SIGCHLD = 17
Signal SIGCONT = 18
Signal SIGTSTP = 20
Signal SIGTTIN = 21
Signal SIGTTOU = 22
Signal SIGURG = 23
Signal SIGXCPU = 24
Signal SIGXFSZ = 25
Signal SIGVTALRM = 26
Signal SIGPROF = 27
Signal SIGWINCH = 28
Signal SIGPOLL = 29
Signal SIGIO = 29
Signal SIGPWR = 30
Signal SIGSYS = 31
Signal SIGBABY = 31
Signal SIG_BLOCK = 0
Signal SIG_UNBLOCK = 1
Signal SIG_SETMASK = 2
To Top