<NME> program.rb
<BEF> ADDFILE
<MSG> - Add 'program' mixin for simple stuff like exiting which could be
  different on different rubies. (LOGSTASH-140)

<DFF> @@ -0,0 +1,14 @@
+
+require "logstash/namespace"
+
+module LogStash::Program
+  public
+  def exit(value)
+    if RUBY_ENGINE == "jruby"
+      # Kernel::exit() in jruby just tosses an exception? Let's actually exit.
+      Java::java.lang.System.exit(value)
+    else
+      Kernel::exit(value)
+    end
+  end # def exit
+end # module LogStash::Program

- Add 'program' mixin for simple stuff like exiting which could be   different on different rubies. (LOGSTASH-140)