ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/Spectre2/Unmounter.cpp
Revision: 432
Committed: 2005-03-27T01:56:29-08:00 (20 years, 2 months ago) by douglas
File size: 399 byte(s)
Log Message:
It should almost do everything it's supposed to.

File Contents

# Content
1 // Spectre 2
2 //
3 // Douglas Thrift
4 //
5 // $Id$
6
7 #include "Unmounter.hpp"
8
9 void Unmounter::operator()()
10 {
11 _L<ext::String> args(1, "-f");
12
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 }

Properties

Name Value
svn:eol-style native
svn:keywords Id