Sha256: ca1f099d16d63c093a3f0b786a2e5045ff6c61314ed98de41eaab58e55e463a9

Contents?: true

Size: 180 Bytes

Versions: 3

Compression:

Stored size: 180 Bytes

Contents

require "./lib/kommando"

k = Kommando.run_async "sleep 10"

sleep 0.1
k.kill
puts "..killed."

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

puts "Killed while sleeping, exitcode is 137"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
kommando-0.1.2 examples/kill.rb
kommando-0.1.1 examples/kill.rb
kommando-0.1.0 examples/kill.rb