Subject: [ruby-ffi] Catching signals with trap. |
From: "meh." <meh.ffff@gmail.com> |
Date: 11/6/11 10:59 AM |
To: ruby-ffi |
I'm writing a window manager in Ruby using my x11 binding/wrapper in ruby-ffi but I'm having a small problem with signals. If the process is in a XNextEvent waiting for a new event and I send a signal to the process it doesn't call the block until an event arrives. Is there a way to make signals work within the ruby-ffi API or do I have to bind to the signal function and do it ugly?