HELP Please!

I really need help to stop control + c from stopping my the program.
Any Ideas?

See http://ruby-doc.org/core-2.2.0/Signal.html#method-c-trap

Signal.trap(‘INT’) do
puts ‘Strg+c (SigInt) blocked for your convenience because it’s also the
shortcut for copy.’
puts ‘Use the command instead, or strg+z (SigKill) if you must
terminate this program.’
end

loop do
break if $exit
sleep 0.0001
end

Signal.trap(“INT”) { $exit=true }

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs