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:
ridiculousfish 2019-02-05 21:44:21 -08:00
parent a042a4cb62
commit 2e542d7822

View File

@ -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_{};