/** * {@inheritdoc} */ function process() { if (1 & ($arg = (int) $this->getParam(1))) { // Emulate terminating $signo = $arg % 4 > 1 ? SIGTERM : SIGKILL; if ($this->debug) { $signame = Base::getSignalName($signo); $this->debug("TEST: Emulate terminating with {$signame} ({$signo})"); } $this->sendSignalToChild($signo); } return parent::process(); }