public function daemonRunCommand(): void
    {
        $ret = ProcessUtil::daemonRun(function ($pid){
            $this->output->info("will running background by new process: $pid");
        });

        if ($ret === 0) {
            $this->output->liteError('current env is not support process create.');
        }
    }
public function daemonRunCommand(): void
    {
        $ret = ProcessUtil::daemonRun(function ($pid){
            $this->output->info("will running background by new process: $pid");
        });

        if ($ret === 0) {
            $this->output->liteError('current env is not support process create.');
        }
    }
public function daemonRunCommand ( ) : void { $ ret = ProcessUtil :: daemonRun ( function ( $ pid ) { $ this -> output -> info ( "will running background by new process: $pid" ) ; } ) ; if ( $ ret === 0 ) { $ this -> output -> liteError ( 'current env is not support process create.' ) ; } }
simple process example for daemon run
@throws \RuntimeException
simple process example for daemon run