]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
util: update setproctitle comments 1409/head
authorTycho Andersen <tycho.andersen@canonical.com>
Thu, 2 Feb 2017 09:30:43 +0000 (10:30 +0100)
committerTycho Andersen <tycho.andersen@canonical.com>
Thu, 2 Feb 2017 09:30:43 +0000 (10:30 +0100)
Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
src/lxc/utils.c

index 24000aafd92367568e4b44f73b0366a26945e6cc..b6a351cd259a738f71f016f99953a577e4d6cb17 100644 (file)
@@ -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)
 {