On Mon, 18 Nov 2024 08:37:06 +0100 Tomasz Duszynski <[email protected]> wrote:
> +static int
> +add_events(const char *pattern)
> +{
> + char *token, *copy;
> + int ret = 0;
> +
> + copy = strdup(pattern);
> + if (copy == NULL)
> + return -ENOMEM;
> +
> + token = strtok(copy, ",");
Since strtok is not thread safe, either use strtok_r or another
way to parse comma seperated list.
Maybe rte_strsplit could help?

