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

Comparing Spectre2/Spectre2.cpp (file contents):
Revision 405 by douglas, 2004-12-30T00:44:18-08:00 vs.
Revision 407 by douglas, 2004-12-30T22:32:13-08:00

# Line 15 | Line 15
15   extern "C"
16   {
17   #include <sys/types.h>
18 #include <unistd.h>
18   #include <signal.h>
19   }
20  
# Line 68 | Line 67 | Spectre2::Spectre2(const ext::String& co
67          Mounter mounter(config);
68          Unmounter unmounter(config);
69  
70 <        daemons.InsertLast(static_cast<Daemon*>(&mounter));
71 <        daemons.InsertLast(static_cast<Daemon*>(&unmounter));
70 >        daemons.InsertLast(dynamic_cast<Daemon*>(&mounter));
71 >        daemons.InsertLast(dynamic_cast<Daemon*>(&unmounter));
72  
73          {
74                  struct ::sigaction action;
# Line 84 | Line 83 | Spectre2::Spectre2(const ext::String& co
83  
84                  api::Posix::CheckError(::sigaction(SIGTERM, &action, NULL));
85          }
86 +
87 +        _mforeach (ext::Vector<Daemon*>, daemon, daemons) (*daemon)->start();
88 +        _mforeach (ext::Vector<Daemon*>, daemon, daemons) (*daemon)->wait();
89   }
90  
91   Spectre2::~Spectre2()

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines