summaryrefslogtreecommitdiff
path: root/src/shared/util.h
diff options
context:
space:
mode:
authorIago López Galeiras <iago@endocode.com>2015-05-13 15:45:49 +0200
committerLennart Poettering <lennart@poettering.net>2015-05-13 16:03:07 +0200
commit875e1014dd9d55cd0692dcce843598cffb2d09b0 (patch)
tree56dc288f358172ede7ab92d9b3fab5e409d3cdfd /src/shared/util.h
parent54b4755f15438c86991d5a4eaadc47150f7e5a84 (diff)
nspawn: skip symlink to a combined cgroup hierarchy if it already exists
If a symlink to a combined cgroup hierarchy already exists and points to the right path, skip it. This avoids an error when the cgroups are set manually before calling nspawn.
Diffstat (limited to 'src/shared/util.h')
-rw-r--r--src/shared/util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/util.h b/src/shared/util.h
index 4a67d5c716..8565fd6e48 100644
--- a/src/shared/util.h
+++ b/src/shared/util.h
@@ -404,6 +404,7 @@ bool machine_name_is_valid(const char *s) _pure_;
char* strshorten(char *s, size_t l);
+int symlink_idempotent(const char *from, const char *to);
int symlink_atomic(const char *from, const char *to);
int mknod_atomic(const char *path, mode_t mode, dev_t dev);