1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-06 17:41:04 +00:00

Avoid signal-unsafe operations in POSIX signal handler (#16160)

This commit is contained in:
JosiahWI 2025-06-01 08:24:32 -05:00 committed by GitHub
parent 56a7f0b7cf
commit 0bb87eb1ff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 53 additions and 42 deletions

View file

@ -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);