Jens Petersen Thanks to Uwe Schmidt for reporting the problem that popen3 was hanging on closed input.