Ahhh... I do trap the ^C in my real script but had been lazy in my test script. As soon as I put the ^C in my test script it too complained!
in reply to Re: Exiting a script with an 'infinitely looping' thread
in thread Exiting a script with an 'infinitely looping' thread
re detach thread - not sure how to do this but it sounds promising.
re share flag - yes, I did realize that doing this I'd need to periodically wake up and check the flag, the only real negative here is that it would delay the time it takes for my script to shut down to as much as the 'wake up ' time, something I'd prefer to avoid.