Skip to content

Commit

Permalink
Improve compatibility to ruby 1.9.2.
Browse files Browse the repository at this point in the history
Don't use Thread#terminate! to kill the reader thread anymore - that
seems to have gone away. Use #terminate.
  • Loading branch information
antifuchs committed Oct 13, 2011
1 parent 29c5008 commit ed55ba1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/clucumber.rb
Expand Up @@ -81,7 +81,7 @@ def record_output


def kill def kill
if @pid if @pid
@reader.terminate! @reader.terminate
Process.kill("TERM", @pid) Process.kill("TERM", @pid)
Process.waitpid(@pid) Process.waitpid(@pid)
@pid = nil @pid = nil
Expand Down

0 comments on commit ed55ba1

Please sign in to comment.