aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-06-17 14:48:35 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-06-17 14:48:35 +0100
commit059f8d8526915f5c70c54edb3d7e5df7cd2970c7 (patch)
tree6bffedfe90ea249acea3ba01ee20936cd03c7e8a
parentc16231d9d4fa32ca29d25693f0188d7cf0944ed1 (diff)
downloadpaludis-059f8d8526915f5c70c54edb3d7e5df7cd2970c7.tar.gz
paludis-059f8d8526915f5c70c54edb3d7e5df7cd2970c7.tar.xz
Fix race condition
-rw-r--r--paludis/ipc_output_manager.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/paludis/ipc_output_manager.cc b/paludis/ipc_output_manager.cc
index ea29f21..632d52f 100644
--- a/paludis/ipc_output_manager.cc
+++ b/paludis/ipc_output_manager.cc
@@ -186,10 +186,11 @@ namespace paludis
mutable Mutex mutex;
std::tr1::shared_ptr<OutputManager> output_manager;
- std::tr1::shared_ptr<Thread> copy_thread;
Pipe stdout_pipe, stderr_pipe, finished_pipe;
+ std::tr1::shared_ptr<Thread> copy_thread;
+
Implementation(const Environment * const e, const OutputExclusivity x,
const std::tr1::function<void (const std::tr1::shared_ptr<OutputManager> &)> & c) :
env(e),