From 93fc3e688f82d32439e4569d9d181bc074fa3dde Mon Sep 17 00:00:00 2001 From: evoskuil Date: Sat, 31 Jan 2026 13:03:12 -0500 Subject: [PATCH] Change use of sigaction to accommodate glibc macroized parameter name. --- console/executor.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/console/executor.cpp b/console/executor.cpp index 0b123d20..c459ebd2 100644 --- a/console/executor.cpp +++ b/console/executor.cpp @@ -118,11 +118,11 @@ void executor::initialize_stop() ::SetConsoleCtrlHandler(&executor::control_handler, TRUE); #else // Restart interrupted system calls. - struct sigaction action - { - .sa_handler = handle_stop, - .sa_flags = SA_RESTART - }; + sigaction action{}; + action.sa_flags = SA_RESTART; + + // sa_handler is actually a macro :o + action.sa_handler = handle_stop; // Set masking. sigemptyset(&action.sa_mask);