fixup! Use sigaction to install signal handlers in bindings provider

Fix bindings provider build on Windows
This commit is contained in:
Sapphire committed 2026-12-06 06:26:23 -05:00
1 parent d09ad6e18d
commit e27df69a04
1 file changed
+6
+6
View File
@@ -216,10 +216,16 @@ int main() {
constexpr auto interval = 1000ms / 30;
// Install signal handlers.
// Windows does not provide sigaction
#ifdef _WIN32
signal(SIGINT, OnSignal);
signal(SIGTERM, OnSignal);
#else
struct sigaction action{};
action.sa_handler = OnSignal;
sigaction(SIGINT, &action, nullptr);
sigaction(SIGTERM, &action, nullptr);
#endif
while (!should_exit) {
vr::VREvent_t event{};