> trap 'INT' do
>   t = Thread.new do
>     LOG.info "Hello"
>   end
>   t.join
> end

Oops, no. This code is completely wrong. Sorry for confusing.
Please don't mind my previous mail. This code is deadlockable and
should never be used.