> Guys, you should test if "kill -CONT $pid" wakes the process up.
Not really. The task would get suspended if it attempted to change the
tty settings while not being session leader. This is part of the POSIX
and BSD job control. A race (either kernel or in something like
sshd/bash) would do that and could have been caused by any of the timing
changes recently.
That would also explain why I can't duplicate it, and the sleep
observation.
--