popen2でなくてsubprocessモジュールを使う
下のようなwarningが出る。
DeprecationWarning: The popen2 module is deprecated. Use the subprocess module.
popen2モジュールを使うことは推奨していないようなので、subprocessモジュールに置き換える。
Pythonライブラリリファレンスの記述に従って、
popen2.popen3(プログラム名)
としていたのを
subprocess.Popen(プログラム名)
とする。
すると、子プロセスを起動したときの動作が安定した。ほっとした。