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

Notice: ext-swoole is supported until v4.7.1, use ext-openswoole >= v4.7.1. Latest version: pecl install openswoole-4.10.0

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