|
@@ -1166,7 +1166,7 @@ class Worker
|
|
|
case \SIGINT:
|
|
case \SIGINT:
|
|
|
case \SIGTERM:
|
|
case \SIGTERM:
|
|
|
case \SIGHUP:
|
|
case \SIGHUP:
|
|
|
- case \SIGTSTP;
|
|
|
|
|
|
|
+ case \SIGTSTP:
|
|
|
static::$_gracefulStop = false;
|
|
static::$_gracefulStop = false;
|
|
|
static::stopAll();
|
|
static::stopAll();
|
|
|
break;
|
|
break;
|
|
@@ -1556,7 +1556,7 @@ class Worker
|
|
|
// Get uid.
|
|
// Get uid.
|
|
|
$user_info = \posix_getpwnam($this->user);
|
|
$user_info = \posix_getpwnam($this->user);
|
|
|
if (!$user_info) {
|
|
if (!$user_info) {
|
|
|
- static::log("Warning: User {$this->user} not exsits");
|
|
|
|
|
|
|
+ static::log("Warning: User {$this->user} not exists");
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
$uid = $user_info['uid'];
|
|
$uid = $user_info['uid'];
|
|
@@ -1564,7 +1564,7 @@ class Worker
|
|
|
if ($this->group) {
|
|
if ($this->group) {
|
|
|
$group_info = \posix_getgrnam($this->group);
|
|
$group_info = \posix_getgrnam($this->group);
|
|
|
if (!$group_info) {
|
|
if (!$group_info) {
|
|
|
- static::log("Warning: Group {$this->group} not exsits");
|
|
|
|
|
|
|
+ static::log("Warning: Group {$this->group} not exists");
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
$gid = $group_info['gid'];
|
|
$gid = $group_info['gid'];
|