#!/usr/bin/env ruby

robe_ruby_path = ARGV[0]
port = ARGV[1].to_i

%w(INT TERM).each do |signal|
  trap(signal) { exit }
end

unless defined? Robe
  $LOAD_PATH.unshift(robe_ruby_path + '/lib')
  require 'robe'
end
p Robe.start(port)

# wait until EOF (= parent exit)
STDIN.each_line {}

#!/usr/bin/env ruby

robe_ruby_path = ARGV[0]
port = ARGV[1].to_i

unless defined? Robe
  $LOAD_PATH.unshift(robe_ruby_path + '/lib')
  require 'robe'
end
p Robe.start(port)

# override Robe's signal trapping
%w(INT TERM).each do |signal|
  trap(signal) { exit }
end

# wait until EOF (= parent exit)
STDIN.each_line {}

Fix launcher does not exit on signal
Fix launcher does not exit on signal
