]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commit - lib/rbot/ircbot.rb
ruby 2.0.0: changes sigtrapping, fixes ThreadError
authorMatthias H <apoc@sixserv.org>
Wed, 4 Sep 2013 00:38:10 +0000 (02:38 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sat, 2 Nov 2013 10:30:39 +0000 (11:30 +0100)
commitfa08e1bd0b4c915add758931a5b47d2c74ebddc0
tree5d8477f27d04daa91f77faf4d075f214442b9566
parente9b652aa2a047557aaa1a68278d9d402f56d45b2
ruby 2.0.0: changes sigtrapping, fixes ThreadError

Ruby 2.0.0 crashes with "ThreadError: can't be called from trap context"
anytime a signal is received, because it tries to write a debug message
within the "trap context".
This changes signal handling so that signals are queued and processed
in the main loop.

More information: https://www.ruby-forum.com/topic/4411227
lib/rbot/ircbot.rb