[Bug 43031] popen() hangs when both stdin and stdout are closed