in reply to Re^3: Catching processes stuck in an apparent loop
in thread Catching processes stuck in an apparent loop

that's exactly what i was trying to point out: first try to fix the problem at the source; rather than working on a cludge/fix before understanding the nature of the problem.
many a program work perfectly and only start showing symptoms of a problem when usage ramps up in a production environment.
the hardest line to type correctly is: stty erase ^H
  • Comment on Re^4: Catching processes stuck in an apparent loop