Skip to content

Commit

Permalink
fix process title
Browse files Browse the repository at this point in the history
  • Loading branch information
hhxsv5 committed Jan 25, 2018
1 parent 4e053fa commit 6f93f1c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Swoole/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ protected function bind()

public function onStart(\swoole_http_server $server)
{
$this->setProcessTitle('php laravels master process');
$this->setProcessTitle('laravels: master process');
}

public function onShutdown(\swoole_http_server $server)
Expand All @@ -54,12 +54,12 @@ public function onShutdown(\swoole_http_server $server)

public function onManagerStart(\swoole_http_server $server)
{
$this->setProcessTitle('php laravels manager process');
$this->setProcessTitle('laravels: manager process');
}

public function onWorkerStart(\swoole_http_server $server, $workerId)
{
$this->setProcessTitle('php laravels worker process ' . $workerId);
$this->setProcessTitle('laravels: worker process ' . $workerId);

// Clear opcode cache
if (function_exists('opcache_reset')) {
Expand Down

0 comments on commit 6f93f1c

Please sign in to comment.