Icicle\Concurrent\Forking\Fork::__destruct PHP 메소드

__destruct() 공개 메소드

public __destruct ( )
    public function __destruct()
    {
        if (0 !== $this->pid && posix_getpid() === $this->oid) {
            // Only kill in owner process.
            $this->kill();
            // Will only terminate if the process is still running.
        }
    }