Skip to content

Commit

Permalink
avoid cli_set_process_title error
Browse files Browse the repository at this point in the history
  • Loading branch information
hhxsv5 committed Apr 26, 2023
1 parent 05aa615 commit 44b4369
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Swoole/Process/ProcessTitleTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ public function setProcessTitle($title)
return;
}
if (function_exists('cli_set_process_title')) {
cli_set_process_title($title);
@cli_set_process_title($title);
} elseif (function_exists('swoole_set_process_name')) {
swoole_set_process_name($title);
@swoole_set_process_name($title);
}
}
}

0 comments on commit 44b4369

Please sign in to comment.