in reply to Re: IO::Compress::Gzip file close issues
in thread IO::Compress::Gzip file close issues
The $! is "Permission denied". The second unlink after 2 seconds sleep succeeds.
First I did not check on the unlink status and the same issue was with moving the newly created .gz file. I noticed that if the move of the .gz file failed also the unlink had failed. That is why it seems to me that the file close is not completed after the gzip yet.