We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41cb57e commit 62499b5Copy full SHA for 62499b5
src/Swoole/Command/IsRunningTrait.php
@@ -21,9 +21,9 @@ public function isRunning(): bool
21
22
[$masterPid, $managerPid] = $pids;
23
24
- if ($managerPid !== '') {
+ if ($managerPid) {
25
// Swoole process mode
26
- return $masterPid && $managerPid && SwooleProcess::kill((int) $managerPid, 0);
+ return $masterPid && SwooleProcess::kill((int) $managerPid, 0);
27
}
28
29
// Swoole base mode, no manager process
src/Swoole/ServerFactory.php
@@ -15,7 +15,6 @@
15
use function defined;
16
use function in_array;
17
use function is_array;
18
-use function method_exists;
19
20
use const SWOOLE_BASE;
use const SWOOLE_PROCESS;
0 commit comments