~ $ uname -sr NetBSD 10.1 ~ $ cc -g -O -o demo demo.c ~ $ ./demo Testing traditional signals: wait for 14, ignore 31, catch 30: ok: no interrupts during wait ok: successfully waited for signal 14 ok: caught signal 30 during wait, as expected Testing realtime signals: wait for 35, ignore 34, catch 33: ok: no interrupts during wait ok: successfully waited for signal 35 ok: caught signal 33 during wait, as expected ~ $ ktrace ./demo Testing traditional signals: wait for 14, ignore 31, catch 30: ok: no interrupts during wait ok: successfully waited for signal 14 ok: caught signal 30 during wait, as expected Testing realtime signals: wait for 35, ignore 34, catch 33: ok: no interrupts during wait ok: successfully waited for signal 35 ok: caught signal 33 during wait, as expected ~ $ kdump > netbsd-10.1.trace