Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
signalfd に代わるものはありますか (Mac OS X では利用できません)? を使用して I/O を多重化してselectおり、同期された方法で信号を受信したいと考えています。
select
man kqueueそしてそこを探しますEVFILT_SIGNAL。
man kqueue
EVFILT_SIGNAL
によって返される記述子は、able/ ablekqueue()である必要があります。呼び出しを使用して、イベントを登録および読み出すことができます。poll()select()kevent()
kqueue()
poll()
select()
kevent()
オリジナルkqueue紙
PS私はあまりオフになっていないことを願っています.kqueueを自分で使用する機会はまだありません.