avdi/greenletters — pull request #11 by adamonduty (2012-09-21 21:15:09+00:00)
Title: Use PTY.check to force raise of PTY::ChildExited

PTY no longer raises PTY::ChildExited on 1.9.2 unless called by
PTY.check with raise = true

The example for greenletters doesn't work on Ruby >= 1.9.2. It just hangs on `adv.wait_for(:exit)`. I tracked this down to an API change in ruby's PTY library. PTY doesn't raise PTY::ChildExisted unless explicitly asked by the `check` method. This pull request should work with at least ruby >= 1.8.7.