Sha256: 1a56c1724e4cd28185f5b0c928ac8233b2e4fc8a8fb1506448bbf965d1a1feb7

Contents?: true

Size: 420 Bytes

Versions: 2

Compression:

Stored size: 420 Bytes

Contents

#! /usr/bin/env ruby

#
  STDOUT.sync = true
  STDERR.sync = true
  puts Process.pid

#
  TESTDIR = File.dirname(__FILE__)
  ROOTDIR = File.dirname(TESTDIR)
  LIBDIR = File.join(ROOTDIR, 'lib')

#
  child_program = "#{ TESTDIR }/child.rb"
  child = IO.popen(child_program)
  puts child.pid

#
  if ARGV.first.to_s =~ /assassin/
    require "#{ LIBDIR }/assassin.rb"
    Assassin.at_exit_kill(child.pid)
  end

#
  exit!

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
assassin-1.4.2 test/parent.rb
assassin-0.4.2 test/parent.rb