in reply to Re: STDOUT buffering problem
in thread STDOUT buffering problem

The code snippet was what was left from stripping the full script down to just enough to illustrate the problem, and I had been peppering it with many attempts to fix the buffering issue. It's not production.