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

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


Latest version: pecl install openswoole-22.1.2

Declaration

<?php Swoole\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 August 31, 2022