lib/async/container/threaded.rb in async-container-0.14.0 vs lib/async/container/threaded.rb in async-container-0.14.1
- old
+ new
@@ -39,9 +39,11 @@
def exec(*arguments)
pid = ::Process.spawn(*arguments)
::Process.waitpid(pid)
+ ensure
+ ::Process.kill(:TERM, pid)
end
end
def self.run(*args, &block)
self.new.run(*args, &block)