mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-07 01:51:14 -03: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:
2
src/io.h
2
src/io.h
@@ -277,7 +277,7 @@ class io_buffer_t {
|
||||
separated_buffer_t<std::string> buffer_;
|
||||
|
||||
/// 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.
|
||||
maybe_t<pthread_t> fillthread_{};
|
||||
|
||||
Reference in New Issue
Block a user