Alternative to signalfd
macos, signals
Solution
`man kqueue` and look for `EVFILT_SIGNAL` there.
The descriptor returned by `kqueue()` should be `poll()`able/`select()`able. Events can be registered and read out using the `kevent()` call.
Original kqueue paper
P.S. I hope I'm not off by much, had no chance to use the kqueue myself yet.
Problem
Is there an alternative to `signalfd` (not available on Mac OS X)? I'm multiplexing I/O using `select` and would like to receive signals in some synchronized fashion.