Validate the specified template, returns 1 if valid or 0 otherwise. */
| 6015 | } |
| 6016 | /* Validate the specified template, returns 1 if valid or 0 otherwise. */ |
| 6017 | int validateProcTitleTemplate(const char *template) { |
| 6018 | int ok = 1; |
| 6019 | sds res = expandProcTitleTemplate(template, ""); |
| 6020 | if (!res) |
| 6021 | return 0; |
| 6022 | if (sdslen(res) == 0) ok = 0; |
| 6023 | sdsfree(res); |
| 6024 | return ok; |
| 6025 | } |
| 6026 | |
| 6027 | int redisSetProcTitle(char *title) { |
| 6028 | #ifdef USE_SETPROCTITLE |
no test coverage detected