private function doSignal(int
$signal, bool
$throwException): bool
{ if (null ===
$pid =
$this->
getPid()) { if ($throwException) { throw new LogicException('Cannot send signal on a non running process.'
);
} return false;
} if ('\\' === \DIRECTORY_SEPARATOR
) { exec(sprintf('taskkill /F /T /PID %d 2>&1',
$pid),
$output,
$exitCode);
if ($exitCode &&
$this->
isRunning()) { if ($throwException) {