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 406 by douglas, 2004-12-30T22:08:35-08:00

# Line 68 | Line 68 | Spectre2::Spectre2(const ext::String& co
68          Mounter mounter(config);
69          Unmounter unmounter(config);
70  
71 <        daemons.InsertLast(static_cast<Daemon*>(&mounter));
72 <        daemons.InsertLast(static_cast<Daemon*>(&unmounter));
71 >        daemons.InsertLast(dynamic_cast<Daemon*>(&mounter));
72 >        daemons.InsertLast(dynamic_cast<Daemon*>(&unmounter));
73  
74          {
75                  struct ::sigaction action;
# Line 84 | Line 84 | Spectre2::Spectre2(const ext::String& co
84  
85                  api::Posix::CheckError(::sigaction(SIGTERM, &action, NULL));
86          }
87 +
88 +        _mforeach (ext::Vector<Daemon*>, daemon, daemons) (*daemon)->start();
89   }
90  
91   Spectre2::~Spectre2()

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines