MCPcopy Create free account
hub / github.com/acl-dev/acl / CProcCtrl

Method CProcCtrl

app/jaws/JawsCtrl/ProcCtrl.cpp:4–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2#include ".\procctrl.h"
3
4CProcCtrl::CProcCtrl(void)
5{
6 char logfile[MAX_PATH], *ptr;
7
8 acl_proctl_daemon_path(m_exePath, sizeof(m_exePath));
9 ptr = strrchr(m_exePath, '\\');
10 if (ptr == NULL)
11 ptr = strrchr(m_exePath, '/');
12
13 if (ptr == NULL)
14 ptr = m_exePath;
15 else
16 ptr++;
17
18 snprintf(logfile, sizeof(logfile), "%s/JawsCtrl.log", m_exePath);
19 acl_msg_open(logfile, "daemon");
20 acl_debug_init("all:2");
21}
22
23CProcCtrl::~CProcCtrl(void)
24{

Callers

nothing calls this directly

Calls 3

acl_proctl_daemon_pathFunction · 0.85
acl_msg_openFunction · 0.85
acl_debug_initFunction · 0.85

Tested by

no test coverage detected