This commit is contained in:
xl
2024-09-04 11:24:38 +08:00
parent f7e5faa668
commit 53bcb44b0e
+1 -1
View File
@@ -40,7 +40,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(),