protected function Process::isSigchildEnabled

Returns whether PHP has been compiled with the '--enable-sigchild' option or not.

Return value

Boolean

9 calls to Process::isSigchildEnabled()
Process::getDescriptors in drupal/core/vendor/symfony/process/Symfony/Component/Process/Process.php
Creates the descriptors needed by the proc_open.
Process::getExitCode in drupal/core/vendor/symfony/process/Symfony/Component/Process/Process.php
Returns the exit code returned by the process.
Process::getPid in drupal/core/vendor/symfony/process/Symfony/Component/Process/Process.php
Returns the Pid (process identifier), if applicable.
Process::getTermSignal in drupal/core/vendor/symfony/process/Symfony/Component/Process/Process.php
Returns the number of the signal that caused the child process to terminate its execution.
Process::hasBeenSignaled in drupal/core/vendor/symfony/process/Symfony/Component/Process/Process.php
Returns true if the child process has been terminated by an uncaught signal.

... See full list

1 method overrides Process::isSigchildEnabled()
ProcessInSigchildEnvironment::isSigchildEnabled in drupal/core/vendor/symfony/process/Symfony/Component/Process/Tests/ProcessInSigchildEnvironment.php
Returns whether PHP has been compiled with the '--enable-sigchild' option or not.

File

drupal/core/vendor/symfony/process/Symfony/Component/Process/Process.php, line 1199

Class

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

Namespace

Symfony\Component\Process

Code

protected function isSigchildEnabled() {
  if (null !== self::$sigchild) {
    return self::$sigchild;
  }
  ob_start();
  phpinfo(INFO_GENERAL);
  return self::$sigchild = false !== strpos(ob_get_clean(), '--enable-sigchild');
}