SignalThread class
- add conf.gem line to
build_config.rb
MRuby::Build.new do |conf|
# ... (snip) ...
conf.gem :github => 'pyama86/mruby-signal-thread'
endSignalThread.trap(:HUP) do
puts "foo"
end
puts "wait..."
loop { sleep 1 }$ mruby/bin/mruby example/signal_thread.rb &
wait...
$ kill -HUP $(pidof mruby)
foounder the MIT License:
- see LICENSE file