core: introduce helper tt_sigaction
The problem is that even if we block all signals on all threads except the main thread, the signals still can be delivered to other threads (#7206). And another problem is that user can spawn his own thread and not block signals. That is why the patch introduces tt_sigaction function that guarantees that all signals will be handled only by the main thread. We use this helper in clock_lowres module. This is supposed to solve the problem, described in #7408. NO_CHANGELOG=internal NO_DOC=internal
Showing
- src/lib/core/CMakeLists.txt 1 addition, 0 deletionssrc/lib/core/CMakeLists.txt
- src/lib/core/clock_lowres.c 5 additions, 17 deletionssrc/lib/core/clock_lowres.c
- src/lib/core/tt_sigaction.c 58 additions, 0 deletionssrc/lib/core/tt_sigaction.c
- src/lib/core/tt_sigaction.h 23 additions, 0 deletionssrc/lib/core/tt_sigaction.h
- test/unit/CMakeLists.txt 3 additions, 0 deletionstest/unit/CMakeLists.txt
- test/unit/tt_sigaction.c 86 additions, 0 deletionstest/unit/tt_sigaction.c
- test/unit/tt_sigaction.result 2 additions, 0 deletionstest/unit/tt_sigaction.result
Loading
Please register or sign in to comment