summaryrefslogtreecommitdiff
path: root/project2/cgi/p2webFCgi.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'project2/cgi/p2webFCgi.cpp')
-rw-r--r--project2/cgi/p2webFCgi.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/project2/cgi/p2webFCgi.cpp b/project2/cgi/p2webFCgi.cpp
index fae6cca..1a63346 100644
--- a/project2/cgi/p2webFCgi.cpp
+++ b/project2/cgi/p2webFCgi.cpp
@@ -1,7 +1,7 @@
#include "FCgiIO.h"
#include "cgiAppEngine.h"
#include <boost/bind.hpp>
-#include <boost/filesystem/convenience.hpp>
+#include <filesystem>
time_t lastPeriodic = 0;
time_t periodicDelay = 600;
@@ -40,12 +40,13 @@ main(void)
fprintf(stderr, "Failed to set signal handler\n");
}
alarm(60);
+ auto initial_path(std::filesystem::current_path());
LifeCycle::onAllComponents(boost::bind(&LifeCycle::onBegin, _1));
CgiApplicationEngine app;
while (FCGX_Accept_r(&request) == 0) {
alarm(0);
cgicc::FCgiIO IO(request);
- boost::filesystem::current_path(boost::filesystem::initial_path());
+ std::filesystem::current_path(initial_path);
app.process(IO, &IO, IO);
FCGX_Finish_r(&request);
LifeCycle::onAllComponents(boost::bind(&LifeCycle::onIteration, _1));