MCPcopy Create free account
hub / github.com/apache/trafficserver / ts_lua_get_process_id

Function ts_lua_get_process_id

plugins/lua/ts_lua_misc.cc:151–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151static int
152ts_lua_get_process_id(lua_State *L)
153{
154 const char *s;
155 TSUuid process = TSProcessUuidGet();
156 if (process) {
157 s = TSUuidStringGet(process);
158 } else {
159 return luaL_error(L, "not able to get process uuid");
160 }
161 lua_pushstring(L, s);
162 return 1;
163}
164
165static int
166ts_lua_get_now_time(lua_State *L)

Callers

nothing calls this directly

Calls 2

TSProcessUuidGetFunction · 0.85
TSUuidStringGetFunction · 0.85

Tested by

no test coverage detected