Class: Pult::Executor::Terminator

Inherits:
Object
  • Object
show all
Defined in:
lib/init/struct.rb,
lib/pult/executor/terminator.rb

Class Method Summary collapse

Class Method Details

.kill!(pid) ⇒ Object



3
4
5
6
# File 'lib/pult/executor/terminator.rb', line 3

def self.kill! pid
  Process.kill "TERM", pid
  Process.wait pid
end