summaryrefslogtreecommitdiff
path: root/src/shared/def.h
diff options
context:
space:
mode:
authorDimitri John Ledkov <dimitri.j.ledkov@intel.com>2015-06-01 12:46:52 +0100
committerDimitri John Ledkov <dimitri.j.ledkov@intel.com>2015-06-02 11:25:52 +0100
commit185a08745957cbd32e8293daf8c51ab9c995a71e (patch)
tree182b8fe7d51a34fbbc34870f1312c7f2eb136784 /src/shared/def.h
parent80979f1ce4dadf797a42e85a97dc10960c1f6509 (diff)
shared: Drop 'name=' prefix from SYSTEMD_CGROUP_CONTROLLER define.
In cgtop,mount-setup,nspawn the name= prefix is hard-coded in the mount options, and the define is not used. Everywhere else, we explicitly white-list allow 'name=' prefix to be used with all controllers, and strip it out to 'normalise' the controller name. That work is mostly inflicted on us due to 'name=' prefix in the define. Dropping this prefix makes everything more sane overall.
Diffstat (limited to 'src/shared/def.h')
-rw-r--r--src/shared/def.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/def.h b/src/shared/def.h
index a3d9fcf388..011c7c667e 100644
--- a/src/shared/def.h
+++ b/src/shared/def.h
@@ -35,7 +35,7 @@
* the watchdog pings will keep the loop busy. */
#define DEFAULT_EXIT_USEC (30*USEC_PER_SEC)
-#define SYSTEMD_CGROUP_CONTROLLER "name=systemd"
+#define SYSTEMD_CGROUP_CONTROLLER "systemd"
#define SIGNALS_CRASH_HANDLER SIGSEGV,SIGILL,SIGFPE,SIGBUS,SIGQUIT,SIGABRT
#define SIGNALS_IGNORE SIGPIPE