#include "base/convert.hpp"
#include "base/scriptglobal.hpp"
#include "base/process.hpp"
-#include <boost/algorithm/string/classification.hpp>
-#include <boost/algorithm/string/split.hpp>
#include <boost/algorithm/string/trim.hpp>
#include <boost/exception/errinfo_api_function.hpp>
#include <boost/exception/errinfo_errno.hpp>
if (!foundSlash) {
const char *pathEnv = getenv("PATH");
if (pathEnv) {
- std::vector<String> paths;
- boost::algorithm::split(paths, pathEnv, boost::is_any_of(":"));
+ std::vector<String> paths = String(pathEnv).Split(":");
bool foundPath = false;
for (const String& path : paths) {
return Main();
}
+void Application::UpdatePidFile(const String& filename)
+{
+ UpdatePidFile(filename, Utility::GetPid());
+}
+
/**
* Grabs the PID file lock and updates the PID. Terminates the application
* if the PID file is already locked by another instance of the application.