mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-14 06:48:39 -04:00
fix(filesystem_extractor): only call closefd() if needed
This commit is contained in:
parent
b8459adc05
commit
78c37dc6f5
@ -167,14 +167,14 @@ class filesystem_extractor_ final : public filesystem_extractor::impl {
|
||||
a_ = nullptr;
|
||||
}
|
||||
|
||||
closefd(pipefd_[1]);
|
||||
|
||||
if (iot_) {
|
||||
closefd(pipefd_[1]);
|
||||
|
||||
iot_->join();
|
||||
iot_.reset();
|
||||
}
|
||||
|
||||
closefd(pipefd_[0]);
|
||||
closefd(pipefd_[0]);
|
||||
}
|
||||
}
|
||||
|
||||
bool extract(reader::filesystem_v2 const& fs,
|
||||
|
Loading…
x
Reference in New Issue
Block a user