This commit is contained in:
xl
2024-09-04 10:51:16 +08:00
parent e6c051ad24
commit 90154ece54
3 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ trait TraitProcess
private function genProcess(AbstractProcess $name): Process
{
return new Process(function (Process $process) use ($name) {
$process->name('[' . \config('id', 'system-service') . '].' . $name->getName());
$process->name('[' . \config('id', 'system-service') . '].' . $name->getName()) . '.' . $process->pid;
$name->onShutdown($process)->process($process);
},
$name->getRedirectStdinAndStdout(),