Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
walkor committed Dec 9, 2022
1 parent 7649eb7 commit d49d79d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Worker.php
Original file line number Diff line number Diff line change
Expand Up @@ -1214,7 +1214,7 @@ public static function signalHandler($signal)
case \SIGINT:
case \SIGTERM:
case \SIGHUP:
case \SIGTSTP;
case \SIGTSTP:
static::$_gracefulStop = false;
static::stopAll();
break;
Expand Down Expand Up @@ -1606,15 +1606,15 @@ public function setUserAndGroup()
// Get uid.
$user_info = \posix_getpwnam($this->user);
if (!$user_info) {
static::log("Warning: User {$this->user} not exsits");
static::log("Warning: User {$this->user} not exists");
return;
}
$uid = $user_info['uid'];
// Get gid.
if ($this->group) {
$group_info = \posix_getgrnam($this->group);
if (!$group_info) {
static::log("Warning: Group {$this->group} not exsits");
static::log("Warning: Group {$this->group} not exists");
return;
}
$gid = $group_info['gid'];
Expand Down

0 comments on commit d49d79d

Please sign in to comment.