Process

4.x is outdated, please check the latest version 22.x


Latest version: pecl install openswoole-22.1.2

Introduction

Swoole Process can be attached and managed by Swoole Server with addProcess API.

Swoole Process can be used to replace PHP pcntl extension. Compare with PHP pcntl, Swoole Process provides more features:

  • IPC based on unixsock, with read/write or push/pop API.
  • Redirect standard I\O
  • The child processes are able to use Swoole\Event.
  • Exec API allows the child process execute native Linux command and communicate with the parent process

Methods

Last updated on August 31, 2022