public function Process::setEnhanceSigchildCompatibility

Activates sigchild compatibility mode.

Sigchild compatibility mode is required to get the exit code and determine the success of a process when PHP has been compiled with the --enable-sigchild option

Parameters

Boolean $enhance:

Return value

self The current Process instance

File

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

Class

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

Namespace

Symfony\Component\Process

Code

public function setEnhanceSigchildCompatibility($enhance) {
  $this->enhanceSigchildCompatibility = (bool) $enhance;
  return $this;
}