Don't use TEMP_FAILURE_RETRY on close in vold.

Bug: http://b/20501816
Change-Id: Ia0a3899947582b8dd0e8e185c203d1ad7dad572e
gugelfrei
Elliott Hughes 9 years ago
parent 65427f1a80
commit 4e378be81e

File diff suppressed because it is too large Load Diff

@ -187,7 +187,7 @@ static status_t BenchmarkRun() {
fd, f, handle = extract_file(e, e.args[0])
if handle in active:
active.remove(handle)
print >>bench, 'TEMP_FAILURE_RETRY(close(%s));' % (handle)
print >>bench, 'close(%s);' % (handle)
elif e.call == "lseek":
fd, f, handle = extract_file(e, e.args[0])
@ -255,7 +255,7 @@ static status_t BenchmarkRun() {
nread += 1
for handle in active:
print >>bench, 'TEMP_FAILURE_RETRY(close(%s));' % (handle)
print >>bench, 'close(%s);' % (handle)
print >>bench, """
free(buf);

Loading…
Cancel
Save