Sha256: 41cc227b9989329a917a361e28fca80f86959cb8e8f2d2c30657bdc8d5fbcab8

Contents?: true

Size: 231 Bytes

Versions: 5

Compression:

Stored size: 231 Bytes

Contents

require "./lib/kommando"

k = Kommando.new "sleep 10"

Thread.new do
  puts "killer is waiting.."
  sleep 1
  k.kill
  puts "..killed."
end
k.run

raise "not 137" unless k.code == 137

puts "Killed while sleeping, exitcode is 137"

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
kommando-0.0.12 examples/kill.rb
kommando-0.0.11 examples/kill.rb
kommando-0.0.10 examples/kill.rb
kommando-0.0.9 examples/kill.rb
kommando-0.0.8 examples/kill.rb