Subject: Re: [ruby-ffi] Catching signals with trap. |
From: Matijs van Zuijlen |
Date: 11/11/11 3:47 AM |
To: ruby-ffi@googlegroups.com |
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?