OpenSwoole\Process::daemon ([ boolean $nochdir [, boolean $noclose ]]) : bool

25.x is outdated, please check the latest version 26.x


Latest version: pecl install openswoole-26.2.0

Declaration

<?php OpenSwoole\Process::daemon ([ boolean $nochdir [, boolean $noclose ]]) : bool

Parameters

nochdir

If to change the current path.

noclose

If to close the standard I/O of the process.

Return

success

Description

Change the process to be a daemon process.

Example

Last updated on February 28, 2026