From: Tycho Andersen Date: Thu, 2 Feb 2017 09:30:43 +0000 (+0100) Subject: util: update setproctitle comments X-Git-Tag: lxc-2.1.0~204^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1409%2Fhead;p=thirdparty%2Flxc.git util: update setproctitle comments Signed-off-by: Tycho Andersen --- 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) {