OpenSwoole\Process::exit (int $status=0) : int

Latest version: pecl install openswoole-22.1.2 | composer require openswoole/core:22.1.5

Declaration

<?php OpenSwoole\Process::exit (int $status=0) : int

Parameters

status

the exit status code of process.

If this code is 0, it stands for that the process exits normally and continue to execute the registered shutdown function.

If this code isn't 0, it stands for that the process exits unexpectedly and stops immediately. The father process can use OpenSwoole\Process::wait to get the exit event and code from the child process.

Return

Description

Stop the child process.

Example

Last updated on September 1, 2022