Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jruby/jruby
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 5d0ef7f0b79d
Choose a base ref
...
head repository: jruby/jruby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 363daa76f4f8
Choose a head ref
  • 2 commits
  • 1 file changed
  • 1 contributor

Commits on Mar 20, 2015

  1. Copy the full SHA
    ea56f15 View commit details
  2. [Truffle] JT: Spawn igv in its own process group.

    * So it is not affected by Ctrl+C to interrupt the program.
    eregon committed Mar 20, 2015
    Copy the full SHA
    363daa7 View commit details
Showing with 8 additions and 10 deletions.
  1. +8 −10 tool/jt.rb
18 changes: 8 additions & 10 deletions tool/jt.rb
Original file line number Diff line number Diff line change
@@ -16,6 +16,9 @@

JRUBY_DIR = File.expand_path('../..', __FILE__)

# wait for sub-processes to handle the interrupt
trap(:INT) {}

module Utilities

def self.graal_version
@@ -70,7 +73,7 @@ def self.igv_running?

def self.ensure_igv_running
unless igv_running?
spawn "#{find_graal_mx} igv"
spawn "#{find_graal_mx} igv", pgroup: true
sleep 5
puts
puts
@@ -111,15 +114,10 @@ module ShellUtils
private

def raw_sh(*args)
begin
result = system(*args)
rescue Interrupt
abort # Ignore Ctrl+C
else
unless result
$stderr.puts "FAILED (#{$?}): #{args * ' '}"
exit $?.exitstatus
end
result = system(*args)
unless result
$stderr.puts "FAILED (#{$?}): #{args * ' '}"
exit $?.exitstatus
end
end