X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Fcgroup-util.c;h=309f65d03eefc0cff9c046db035883565b9fdcc9;hb=8674debc67cdad04d930d931405a360f15e5cb28;hp=2c2ffc589879ead8b7f04c2cf31bcff833d428cb;hpb=e9174f29c7e3ee45137537b126458718913a3ec5;p=elogind.git diff --git a/src/shared/cgroup-util.c b/src/shared/cgroup-util.c index 2c2ffc589..309f65d03 100644 --- a/src/shared/cgroup-util.c +++ b/src/shared/cgroup-util.c @@ -480,7 +480,7 @@ static int join_path(const char *controller, const char *path, const char *suffi int cg_get_path(const char *controller, const char *path, const char *suffix, char **fs) { const char *p; - static __thread bool good = false; + static thread_local bool good = false; assert(fs);