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