| 7154 | } |
| 7155 | |
| 7156 | int 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 | |
| 7171 | void redisSetCpuAffinity(const char *cpulist) { |
| 7172 | #ifdef USE_SETCPUAFFINITY |
no test coverage detected