Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Swoole\MySQL\ExceptionSwoole\Process::alarm>
^SwooleLast updated: Mon, 26 Oct 2026

The Swoole\Process class

(PECL swoole >= 1.9.0)

Introduction

Class synopsis

class Swoole\Process {
/* Constants */
const int IPC_NOWAIT = 256;
/* Methods */
public static function alarm(int $interval_usec): void
public function close(): void
public static function daemon(bool $nochdir = ?, bool $noclose = ?): void
public function __destruct(): void
public function exec(string $exec_file, string $args): ReturnType
public function exit(string $exit_code = ?): void
public function freeQueue(): void
public static function kill(int $pid, int $signal_no = ?): bool
public function name(string $process_name): bool
public function pop(int $maxsize = ?): mixed
public function push(string $data): bool
public function read(int $maxsize = ?): string
public static function signal(string $signal_no, callable $callback): void
public function start(): void
public function statQueue(): array
public function useQueue(int $key, int $mode = ?): bool
public static function wait(bool $blocking = ?): array
public function write(string $data): int
}

Predefined Constants

Swoole\Process::IPC_NOWAIT

Table of Contents


<Swoole\MySQL\ExceptionSwoole\Process::alarm>
^SwooleLast updated: Mon, 26 Oct 2026