Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Process.php

function Process::getPid

Returns the Pid (process identifier), if applicable.

Return value

int|null The process id if running, null otherwise

1 call to Process::getPid()
Process::doSignal in vendor/symfony/process/Process.php
Sends a POSIX signal to the process.

File

vendor/symfony/process/Process.php, line 519

Class

Process
Process is a thin wrapper around proc_* functions to easily start independent PHP processes.

Namespace

Symfony\Component\Process

Code

public function getPid() : ?int {
    return $this->isRunning() ? $this->processInformation['pid'] : null;
}
RSS feed
Powered by Drupal