This commit is contained in:
2021-03-29 11:45:08 +08:00
parent 98778b69fb
commit 3b186e94a2
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -583,6 +583,7 @@ if (!function_exists('name')) {
/**
* @param int $pid
* @param string|null $prefix
* @throws ConfigException
* @throws Exception
*/
@@ -594,7 +595,7 @@ if (!function_exists('name')) {
$name = Config::get('id', false, 'system') . '[' . $pid . ']';
if (!empty($prefix)) {
$name .= $prefix;
$name .= '.' . $prefix;
}
swoole_set_process_name($name);
}