mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 17:06:59 +08: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
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 New Issue
Block a user