Method: ClucumberSubprocess#kill

Defined in:
lib/clucumber.rb

#killObject



82
83
84
85
86
87
88
89
90
91
# File 'lib/clucumber.rb', line 82

def kill
  if @pid
    @reader.terminate
    Process.kill("TERM", @pid)
    Process.waitpid(@pid)
    @pid = nil
  end
rescue PTY::ChildExited
  @pid = nil
end