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

Declaration

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

Parameters

nochdir

whether change the current path.

noclose

whether close the standard I/O of the process.

Return

success

Description

Change the process to be a daemon process.

Example