am f298f6be
: Merge "Use errno correctly."
* commit 'f298f6be4c8df8745735676e37ccc963909ff3b2': Use errno correctly.
This commit is contained in:
commit
ad6bd04387
1 changed files with 2 additions and 1 deletions
3
Loop.cpp
3
Loop.cpp
|
@ -103,10 +103,11 @@ int Loop::lookupActive(const char *id, char *buffer, size_t len) {
|
|||
}
|
||||
|
||||
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,
|
||||
|
|
Loading…
Reference in a new issue