mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
Avoid signal-unsafe operations in POSIX signal handler (#16160)
This commit is contained in:
@@ -65,6 +65,8 @@
|
||||
#include "gettext.h"
|
||||
#include "util/tracy_wrapper.h"
|
||||
|
||||
#include <csignal>
|
||||
|
||||
class ClientNotFoundException : public BaseException
|
||||
{
|
||||
public:
|
||||
@@ -4114,7 +4116,7 @@ std::unique_ptr<PlayerSAO> Server::emergePlayer(const char *name, session_t peer
|
||||
return playersao;
|
||||
}
|
||||
|
||||
void dedicated_server_loop(Server &server, bool &kill)
|
||||
void dedicated_server_loop(Server &server, volatile std::sig_atomic_t &kill)
|
||||
{
|
||||
verbosestream<<"dedicated_server_loop()"<<std::endl;
|
||||
|
||||
|
Reference in New Issue
Block a user