I forgot to mention that the program is being called via spawn_with_input() which does threading and a bug in that function is probably the culprit.
I forgot to mention that the program is being called via spawn_with_input() which does threading and a bug in that function is probably the culprit.