commit | f298f6be4c8df8745735676e37ccc963909ff3b2 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Mon Aug 17 17:33:35 2015 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Mon Aug 17 17:33:35 2015 +0000 |
tree | c4b44b6da4ee7d803d9fee8e5dd3c1e1efb00578 | |
parent | 6d24e0866f61aba0ac3023408ead083ad9b6cdab [diff] | |
parent | a1038a95667503457423a994510dd528e2ed3e90 [diff] |
Merge "Use errno correctly."
diff --git a/Loop.cpp b/Loop.cpp index b1e9f6a..37ad102 100644 --- a/Loop.cpp +++ b/Loop.cpp
@@ -103,10 +103,11 @@ } rc = ioctl(fd, LOOP_GET_STATUS64, &li); - close(fd); if (rc < 0 && errno == ENXIO) { + close(fd); continue; } + close(fd); if (rc < 0) { SLOGE("Unable to get loop status for %s (%s)", filename,