diff options
-rw-r--r-- | project2/cgi/Jamfile.jam | 1 | ||||
-rw-r--r-- | project2/cgi/p2webFCgi.cpp | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/project2/cgi/Jamfile.jam b/project2/cgi/Jamfile.jam index 5b8e5a5..14b681e 100644 --- a/project2/cgi/Jamfile.jam +++ b/project2/cgi/Jamfile.jam @@ -48,6 +48,7 @@ exe p2fcgi : fcgi : <library>p2cgicommon + <library>boost_filesystem <include>../../libmisc ; diff --git a/project2/cgi/p2webFCgi.cpp b/project2/cgi/p2webFCgi.cpp index 0551bf0..42a99bc 100644 --- a/project2/cgi/p2webFCgi.cpp +++ b/project2/cgi/p2webFCgi.cpp @@ -1,6 +1,7 @@ #include "FCgiIO.h" #include "cgiAppEngine.h" #include <boost/bind.hpp> +#include <boost/filesystem/convenience.hpp> time_t lastPeriodic = 0; time_t periodicDelay = 600; @@ -44,6 +45,7 @@ main(void) while (FCGX_Accept_r(&request) == 0) { alarm(0); cgicc::FCgiIO IO(request); + boost::filesystem::current_path(boost::filesystem::initial_path()); app.process(IO, &IO, IO); FCGX_Finish_r(&request); Plugable::onAllComponents(boost::bind(&ComponentLoader::onIteration, _1)); |