man kqueue and find EVFILT_SIGNAL there.
The kqueue() returned by kqueue() must be able to poll() able / select() . Events can be logged and read with a kevent() call.
Original kqueue paper
PS I hope I do not leave, and I did not have a chance to use kyuyu yet.
source share