This commit is contained in:
2020-10-21 15:09:15 +08:00
parent 5934dc8cac
commit 8c1e48dc8b
2 changed files with 6 additions and 7 deletions
+2 -7
View File
@@ -28,14 +28,9 @@ class OnManagerStart extends Callback
if (Snowflake::isLinux()) {
name('Server Manager.');
}
System::waitSignal(9 | 15, function () use ($server) {
if (System::waitSignal(9 | 15)) {
$server->shutdown();
while ($ret = Process::wait()) {
var_dump($ret);
}
});
}
}
}