From: Yukihiro Matsumoto Date: 2009-09-11T11:20:37+09:00 Subject: Re: Can not catch PTY::ChildExited exception Hi, In message "Re: Can not catch PTY::ChildExited exception" on Fri, 11 Sep 2009 09:56:15 +0900, Denis Berezhnoy writes: |But now the problem is that ChildExited exception can occur at any |moment after spawn and interrupt program in random place. In my test |above I never get TEST END printed. | |How can I handle this in right way? Define the "right way" first. I admit asynchronous exception is a bad design choice. pty bundled with 1.9 has changed to use polling via pty.check method. matz.