diff options
author | Eric Wong <normalperson@yhbt.net> | 2008-09-22 02:21:14 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-09-22 02:21:14 -0700 |
commit | 690c0717a0b789c8914e49370fabed1dc3e75fd5 (patch) | |
tree | b5d823d8aedb826ddd2bcdd54d4fc35ed1eb41c4 /src | |
parent | 51405e174f4ea1ee58610012837241c928335057 (diff) | |
download | mpd-690c0717a0b789c8914e49370fabed1dc3e75fd5.tar.gz mpd-690c0717a0b789c8914e49370fabed1dc3e75fd5.tar.xz mpd-690c0717a0b789c8914e49370fabed1dc3e75fd5.zip |
directory: don't leak file handles if we get a corrupt db
Diffstat (limited to '')
-rw-r--r-- | src/directory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/directory.c b/src/directory.c index 5a5aaf3e5..08b594105 100644 --- a/src/directory.c +++ b/src/directory.c @@ -1056,7 +1056,7 @@ int readDirectoryDB(void) } else { ERROR("db info not found in db file\n"); ERROR("you should recreate the db using --create-db\n"); - fseek(fp, 0, SEEK_SET); + while (fclose(fp) && errno == EINTR) ; return -1; } } |