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

Method run_alone

lib_fiber/cpp/src/master_fiber.cpp:53–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53bool master_fiber::run_alone(const char* addrs, const char* path /* = NULL */)
54{
55 //acl_assert(addrs && *addrs);
56 if (addrs == NULL || *addrs == 0) {
57 if (path == NULL || *path == 0) {
58 printf("%s: addrs NULL and path NULL\r\n", addrs);
59 return false;
60 }
61 printf("%s: addrs NULL and try to use master_service in %s\r\n",
62 __FUNCTION__, path);
63 }
64
65 daemon_mode_ = false;
66
67 int argc = 0;
68 const char *argv[9];
69 const char *file_path = acl_process_path();
70
71 argv[argc++] = file_path ? file_path : "unknown";
72 argv[argc++] = "-L";
73 argv[argc++] = addrs;
74 if (path && *path) {
75 argv[argc++] = "-f";
76 argv[argc++] = path;
77 }
78
79 run(argc, (char **) argv);
80 return true;
81}
82
83//////////////////////////////////////////////////////////////////////////
84

Callers 15

mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 2

acl_process_pathFunction · 0.85
runFunction · 0.50

Tested by

no test coverage detected