--- Spectre2/Unmounter.cpp 2004/12/31 06:08:35 406 +++ Spectre2/Unmounter.cpp 2005/03/25 01:38:00 428 @@ -6,18 +6,23 @@ #include "Unmounter.hpp" -Unmounter::Unmounter(const ext::String& config) : Daemon(), config(config) {} +Unmounter::Unmounter(const api::Path& config) : Daemon(), config(config) {} void Unmounter::load() { - api::Cerr << "Unmounter::load()" << ios::NewLine; - loaded = true; } void Unmounter::run() { - api::Cerr << "Unmounter::run()" << ios::NewLine; + ext::ThreadSet<> workers; + + _synchronized (Spectre2::sharesLock) _foreach (const ext::RedBlackSet, share, Spectre2::shares) if (share->mounted() && !share->mountable()) + { + api::Cout << "STUB: unmount " << share << ios::NewLine; + } + + workers.Join(); - running = false; + ::sleep(5); }