Alternative to signalfd

Is there an alternative to signalfd (not available on Mac OS X)? I am multiplexing I / O using select and would like to receive signals in some synchronized mode.

+4
source share
1 answer

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.

+4
source

Source: https://habr.com/ru/post/1412435/


All Articles