diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-09-17 12:06:59 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-09-17 12:06:59 +0000 |
commit | f53574ebd60e5a22dbaae7e2bec97f5993670c20 (patch) | |
tree | 995740de8d6594d4e82612979f5f40b65fe35a0b /src | |
parent | d5529f5b85d4f093c6c051c060eb6feef9f8f76f (diff) |
RestoreSink: Slightly reduce the number of concurrent FDs
Diffstat (limited to 'src')
-rw-r--r-- | src/libutil/archive.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libutil/archive.cc b/src/libutil/archive.cc index 999b17cd2..b19ff4bf9 100644 --- a/src/libutil/archive.cc +++ b/src/libutil/archive.cc @@ -282,6 +282,7 @@ struct RestoreSink : ParseSink void createRegularFile(const Path & path) { Path p = dstPath + path; + fd.close(); fd = open(p.c_str(), O_CREAT | O_EXCL | O_WRONLY, 0666); if (fd == -1) throw SysError(format("creating file `%1%'") % p); } |