@drawohara JRuby can still pipe... you just open a pipe and write to it from the signal handler
-
-
Replying to @drawohara
@drawohara confirm, use a pipe to send a message from a signal handler to a thread which runs hooks for each signal one-by-one1 reply 0 retweets 0 likes -
Replying to @drawohara
@drawohara well, ideally, you'd never close either end of the pipe...2 replies 0 retweets 0 likes -
Replying to @bascule
@bascule you have to to avoid deadlock... but with socket pair it works.... like this? https://gist.github.com/ahoward/54478592 replies 0 retweets 0 likes -
-
Replying to @drawohara
@drawohara IMO you shouldn't ever close either end1 reply 0 retweets 0 likes
Replying to @drawohara
@drawohara it will only block the main thread, and that's until the "signal callback runner" thread consumes the event
3:26 PM - 23 Apr 2013
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.