MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / redisSetProcTitle

Function redisSetProcTitle

src/server.cpp:7156–7169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7154}
7155
7156int redisSetProcTitle(const char *title) {
7157#ifdef USE_SETPROCTITLE
7158 if (!title) title = cserver.exec_argv[0];
7159 sds proc_title = expandProcTitleTemplate(cserver.proc_title_template, title);
7160 if (!proc_title) return C_ERR; /* Not likely, proc_title_template is validated */
7161
7162 setproctitle("%s", proc_title);
7163 sdsfree(proc_title);
7164#else
7165 UNUSED(title);
7166#endif
7167
7168 return C_OK;
7169}
7170
7171void redisSetCpuAffinity(const char *cpulist) {
7172#ifdef USE_SETCPUAFFINITY

Callers 8

rdbSaveBackgroundForkFunction · 0.85
rdbSaveToSlavesSocketsFunction · 0.85
changeBindAddrFunction · 0.85
changeListenPortFunction · 0.85
mainFunction · 0.85
RM_ForkFunction · 0.85
updateProcTitleTemplateFunction · 0.85

Calls 3

expandProcTitleTemplateFunction · 0.85
setproctitleFunction · 0.85
sdsfreeFunction · 0.85

Tested by

no test coverage detected