From 7d6c20f25fc12d744b5c1e5c6a41fd8aa04a7463 Mon Sep 17 00:00:00 2001 From: Tycho Andersen Date: Thu, 2 Feb 2017 10:30:43 +0100 Subject: [PATCH] util: update setproctitle comments Signed-off-by: Tycho Andersen --- src/lxc/utils.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/lxc/utils.c b/src/lxc/utils.c index 24000aafd..b6a351cd2 100644 --- a/src/lxc/utils.c +++ b/src/lxc/utils.c @@ -1405,11 +1405,8 @@ char *get_template_path(const char *t) } /* - * Sets the process title to the specified title. Note: - * 1. this function requires root to succeed - * 2. it clears /proc/self/environ - * 3. it may not succed (e.g. if title is longer than /proc/self/environ + - * the original title) + * Sets the process title to the specified title. Note that this may fail if + * the kernel doesn't support PR_SET_MM_MAP (kernels <3.18). */ int setproctitle(char *title) { -- 2.47.2