mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +02:00
linux: fix issues if certain codepaths are hit while signal handlers are temporarily off.
This commit is contained in:
@@ -132,6 +132,12 @@ Thread *newThread(Threadable *t);
|
||||
#if defined(LOVE_LINUX)
|
||||
void disableSignals();
|
||||
void reenableSignals();
|
||||
|
||||
struct ScopedDisableSignals
|
||||
{
|
||||
ScopedDisableSignals() { disableSignals(); }
|
||||
~ScopedDisableSignals() { reenableSignals(); }
|
||||
};
|
||||
#endif
|
||||
|
||||
} // thread
|
||||
|
||||
Reference in New Issue
Block a user