commit | a1ef2e020664860de562eccd63c2c5895519763c | [log] [tgz] |
---|---|---|
author | Kenny Root <kroot@google.com> | Fri Oct 01 18:28:28 2010 -0700 |
committer | Alex Ray <aray@google.com> | Tue Jul 30 13:56:55 2013 -0700 |
tree | 57005e4ff576850a57e2642a2f68a7fc9001acaa | |
parent | 7d90df8dc30e7b22aea030f7dca01095529cc6b1 [diff] |
ZipFileRO: moar logging and wrap close There is apparently still a race upon reading the entry Local File Header that can't be tracked down, so move the LFH check inside the mutex-protected block so we can call lseek again to see where we are when we log an error. Also, close() can fail so use TEMP_FAILURE_RETRY on it so we don't unwittingly leak file descriptors when Mean Mr. EINTR comes a-knocking. Change-Id: I753abad0bd882fe28f7281c406fa76f64393ef4c