ok, she builds! next step is to add it to all the server processes, and

define a var on non-prod (so all branches except for
clang-profile-build) to disable it entirely
This commit is contained in:
DarthArgus
2016-10-17 23:02:59 +00:00
parent b08fa054c4
commit aeb6cbe47b
2 changed files with 5 additions and 7 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ namespace StellaBellum {
private:
const inline std::string get_selfpath() {
char buff[PATH_MAX];
ssize_t len = ::readlink(std::string(vxENCRYPT("/proc/self/exe").decrypt()), buff, sizeof(buff) - 1);
ssize_t len = ::readlink(vxENCRYPT("/proc/self/exe").decrypt(), buff, sizeof(buff) - 1);
if (len != -1) {
buff[len] = '\0';
return std::string(buff);