Module: LogStash::Program

Defined in:
lib/logstash/program.rb

Instance Method Summary collapse

Instance Method Details

#exit(value) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/logstash/program.rb', line 6

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