This commit is contained in:
2023-02-13 11:50:27 +08:00
parent 49fae2129f
commit f922c209a8
2 changed files with 20 additions and 6 deletions
+12 -3
View File
@@ -60,6 +60,15 @@ class ProcessManager extends Component
}
/**
* @return Process[]
*/
public function getProcesses(): array
{
return $this->_process;
}
/**
* @param string|OnProcessInterface|BaseProcess $custom
* @throws Exception
@@ -166,7 +175,7 @@ class ProcessManager extends Component
$process = $this->_process[$name];
$process->write($message);
}
/**
* @param mixed $custom
* @param Process $process
@@ -183,6 +192,6 @@ class ProcessManager extends Component
}
$custom->onSigterm()->process($process);
}
}