posix_kill
Description
The posix_kill of POSIX for PHP sends a signal to a process.
Syntax
posix_kill( int $process_id, int $signal ): bool
Parameters
process_id
The process identifier.
signal
One of the PCNTL signals constants.
Return
Returns true on success or false on failure.
Examples
1 · process_id signal
<? $process_id = posix_getppid(); $signal = SIGKILL; $return = posix_kill($process_id, $signal); var_export($return); ?>
true
Links
POSIX
- posix_access
- posix_ctermid
- posix_eaccess
- posix_errno
- posix_fpathconf
- posix_get_last_error
- posix_getcwd
- posix_getegid
- posix_geteuid
- posix_getgid
- posix_getgrgid
- posix_getgrnam
- posix_getgroups
- posix_getlogin
- posix_getpgid
- posix_getpgrp
- posix_getpid
- posix_getppid
- posix_getpwnam
- posix_getpwuid
- posix_getrlimit
- posix_getsid
- posix_getuid
- posix_initgroups
- posix_isatty
- posix_mkfifo
- posix_mknod
- posix_pathconf
- posix_setegid
- posix_seteuid
- posix_setgid
- posix_setpgid
- posix_setrlimit
- posix_setsid
- posix_setuid
- posix_strerror
- posix_sysconf
- posix_times
- posix_ttyname
- posix_uname