mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 09:36:41 -04:00
12 lines
452 B
C++
12 lines
452 B
C++
--- src/thread_signal.cpp.orig 2024-10-02 04:26:07 UTC
|
|
+++ src/thread_signal.cpp
|
|
@@ -120,7 +120,9 @@ namespace libthreadar
|
|
if(sigemptyset(& sigac.sa_mask) != 0)
|
|
throw exception_system("Error calling sigemptyset(): ", errno);
|
|
sigac.sa_flags = 0;
|
|
+#ifdef __linux__
|
|
sigac.sa_restorer = nullptr;
|
|
+#endif
|
|
|
|
if(sigaction(awaking_signal, &sigac, nullptr) != 0)
|
|
throw exception_system("Error calling sigaction(): ", errno);
|