On 26 February 2015 at 20:12, Ken Brown <kbr...@cornell.edu> wrote: > Maybe I'm missing something, but how could that popen call possibly DTRT? > "gzip -d" has been called without being given the name of the file to > decompress.
It's reading from standard input, which was redirected earlier when the input file was opened. The process opened with popen inherits this as an open file.