>In Denys' fix, he closes STDIN when the inactivity timer pops. I >wonder why that messes up the terminal? Perhaps because shells routinely mess up the terminal in normal operation, and this interfered with its trying to put it back? (Also routine.) -- Jim