[Bug 51719] _pclose() does not cause child stdin to report EOF