ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/Spectre2/Unmounter.cpp
(Generate patch)

Comparing Spectre2/Unmounter.cpp (file contents):
Revision 402 by douglas, 2004-12-29T22:38:37-08:00 vs.
Revision 432 by douglas, 2005-03-27T01:56:29-08:00

# Line 6 | Line 6
6  
7   #include "Unmounter.hpp"
8  
9 < Unmounter::Unmounter(const ext::String& config) : Daemon(), config(config)
9 > void Unmounter::operator()()
10   {
11 <        api::Cerr << "Unmounter.this = " << this << ios::NewLine;
12 < }
13 <
14 < void Unmounter::load()
15 < {
16 <        api::Cerr << "Unmounter::load()" << ios::NewLine;
17 <
18 <        loaded = true;
19 < }
20 <
21 < void Unmounter::run()
22 < {
23 <        api::Cerr << "Unmounter::run()" << ios::NewLine;
11 >        _L<ext::String> args(1, "-f");
12  
13 <        running = false;
13 > #ifndef __FreeBSD__
14 >        args[0].InsertAllLast("l");
15 > #endif
16 >        args.InsertLast(share.getMount());
17 >
18 >        _S<api::Process> umount(Spectre2::umount, args);
19 >
20 >        if (Spectre2::debug)
21 >                ios::ReadToWrite(*umount.GetReader(), api::Cout);
22 >        else
23 >                ios::Discard(*umount.GetReader());
24   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines