http://www.perlmonks.org?node_id=588442


in reply to Re^4: maddening system call gzip/gunzip problems
in thread maddening system call gzip/gunzip problems

How can the script continue before the fork of gzip finishes clean up?

Every successful system call in the loop modifies the contents of the directory, potentially changing what readdir will return on the next loop iteration.

  • Comment on Re^5: maddening system call gzip/gunzip problems