mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-16 18:05:22 +02:00
Avoid signal-unsafe operations in POSIX signal handler (#16160)
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
#include "translation.h"
|
||||
#include "script/common/c_types.h" // LuaError
|
||||
#include <atomic>
|
||||
#include <csignal>
|
||||
#include <string>
|
||||
#include <list>
|
||||
#include <map>
|
||||
@@ -799,4 +800,4 @@ private:
|
||||
|
||||
Shuts down when kill is set to true.
|
||||
*/
|
||||
void dedicated_server_loop(Server &server, bool &kill);
|
||||
void dedicated_server_loop(Server &server, volatile std::sig_atomic_t &kill);
|
||||
|
Reference in New Issue
Block a user