diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-07-11 00:50:49 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-07-11 00:50:49 +0200 |
commit | c6c18be35bb1d300d0b62a568783cc1c477f7151 (patch) | |
tree | e4bad2452f20b6d1d6df9714d6abe72cdc56599c /src/util.c | |
parent | 55096547212928b0ba83fca2595cae0d66d3c0b0 (diff) |
cgroup: kill processes, not tasks and other cgroup changes
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/util.c b/src/util.c index fa3969b705..69eb14be61 100644 --- a/src/util.c +++ b/src/util.c @@ -956,7 +956,6 @@ int mkdir_parents(const char *path, mode_t mode) { return -ENOMEM; r = mkdir(t, mode); - free(t); if (r < 0 && errno != EEXIST) @@ -972,7 +971,7 @@ int mkdir_p(const char *path, mode_t mode) { if ((r = mkdir_parents(path, mode)) < 0) return r; - if (mkdir(path, mode) < 0) + if (mkdir(path, mode) < 0 && errno != EEXIST) return -errno; return 0; |