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:51:50 +0100
commit1ed6717ae5faa705c295101b7d5a19f9d71652e2 (patch)
tree134dcbfde7b0c9db43d77e1989c55ad78203f5aa
parentbadb4a59e185652e97e8dbd8a1d3accd4d9b7abb (diff)
downloadpaludis-1ed6717ae5faa705c295101b7d5a19f9d71652e2.tar.gz
paludis-1ed6717ae5faa705c295101b7d5a19f9d71652e2.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),