mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-04-26 16:46:31 +00:00
Merge branch 'main' into websockets
This commit is contained in:
commit
9cb9f0bf0f
@ -43,6 +43,13 @@
|
||||
#include "CDZoneTableTable.h"
|
||||
#include "eGameMasterLevel.h"
|
||||
|
||||
#ifdef DARKFLAME_PLATFORM_UNIX
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/wait.h>
|
||||
|
||||
#endif
|
||||
|
||||
namespace Game {
|
||||
Logger* logger = nullptr;
|
||||
dServer* server = nullptr;
|
||||
@ -455,6 +462,12 @@ int main(int argc, char** argv) {
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef DARKFLAME_PLATFORM_UNIX
|
||||
// kill off dead zombie instances
|
||||
int status{};
|
||||
waitpid(static_cast<pid_t>(-1), &status, WNOHANG);
|
||||
#endif
|
||||
|
||||
t += std::chrono::milliseconds(masterFrameDelta);
|
||||
std::this_thread::sleep_until(t);
|
||||
}
|
||||
|
@ -9,5 +9,6 @@ max_number_of_friends=50
|
||||
|
||||
web_server_enabled=0
|
||||
|
||||
web_server_listen_ip=127.0.0.1
|
||||
# Unused for now
|
||||
# web_server_listen_ip=127.0.0.1
|
||||
web_server_listen_port=2005
|
||||
|
Loading…
x
Reference in New Issue
Block a user