summaryrefslogtreecommitdiffstats
path: root/tests/sighook.c
Commit message (Collapse)AuthorAgeFilesLines
* sighook: Always re-raise faults on macOSHEADmainTavian Barnes21 hours1-0/+4
| | | | | | | | | | macOS always fills in si_code for SIG{BUS,ILL,SEGV} as if it were a real hardware fault, so returning from the handler is not guaranteed to re- trigger the signal. Fixes: aecdabb ("sighook: Return instead of re-raising for faults") Link: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/2386463/4/util/posix/signals_test.cc Link: https://github.com/chromium/crashpad/commit/e0d8a0aa01ac176804077f1f128ccc894c098f79
* tests/sighook: Add missing #include <sys/wait.h>Tavian Barnes4 days1-2/+3
|
* tests/sighook: Add atsigexit() testsTavian Barnes6 days1-1/+77
|
* tests/sighook: Test the SH_ONESHOT flagTavian Barnes2024-12-041-2/+28
|
* sighook: Don't forget to reset list->tail on the last sigpop()Tavian Barnes2024-10-101-0/+7
| | | | | | | This was causing a UAF if we ever unregistered the last hook for a signal and then re-registered one. Fixes: 75b7f70 ("sighook: Make sigunhook() O(1)")
* tests/sighook: Use the new xtimer_start() APITavian Barnes2024-10-101-8/+6
|
* Fix includesTavian Barnes2024-08-291-0/+1
|
* build: Move feature test macros to prelude.hTavian Barnes2024-08-281-1/+0
| | | | | | This replaces the explicit CPPFLAGS list in flags.mk with just `-include src/prelude.h`, shortening our compiler command lines and allowing them to be easily documented.
* prelude: Split bfs-specific utilities into new bfs.h headerTavian Barnes2024-08-281-1/+3
|
* tests: Simplify unit tests with a global variableTavian Barnes2024-07-071-22/+9
| | | | | It's a little awkward to thread the test result through manually; much easier to just make bfs_check() update a global variable.
* sighook: Replace sigtables with RCU-protected linked listsTavian Barnes2024-07-071-34/+60
| | | | | | | | This fixes an ABA problem where sigdispatch() could think no handlers are registered for a signal even when there are. Link: https://unix.stackexchange.com/a/779594/56202 Fixes: 375caac ("sighook: New utilities for hooking signals")
* diag: New helpers to include xstrerror(errno) automaticallyTavian Barnes2024-05-171-6/+6
|
* sighook: New utilities for hooking signalsTavian Barnes2024-05-161-0/+97
This allows multiple hooks to be installed for a single signal.