mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-28 04:35:09 +00:00
Initialize shutdown_fillthread_ to false
It was left uninitialized which was causing certain command substitutions to exit too early. Fixes #5616
This commit is contained in:
parent
a042a4cb62
commit
2e542d7822
1 changed files with 1 additions and 1 deletions
2
src/io.h
2
src/io.h
|
@ -277,7 +277,7 @@ class io_buffer_t {
|
||||||
separated_buffer_t<std::string> buffer_;
|
separated_buffer_t<std::string> buffer_;
|
||||||
|
|
||||||
/// Atomic flag indicating our fillthread should shut down.
|
/// Atomic flag indicating our fillthread should shut down.
|
||||||
std::atomic<bool> shutdown_fillthread_;
|
std::atomic<bool> shutdown_fillthread_{false};
|
||||||
|
|
||||||
/// The background fillthread itself, if any.
|
/// The background fillthread itself, if any.
|
||||||
maybe_t<pthread_t> fillthread_{};
|
maybe_t<pthread_t> fillthread_{};
|
||||||
|
|
Loading…
Reference in a new issue