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:
parent
56a7f0b7cf
commit
0bb87eb1ff
11 changed files with 53 additions and 42 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue