[lxc-devel] [lxc/master] util: update setproctitle comments
tych0 on Github
lxc-bot at linuxcontainers.org
Thu Feb 2 09:31:31 UTC 2017
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 361 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20170202/e715909f/attachment.bin>
-------------- next part --------------
From 7d6c20f25fc12d744b5c1e5c6a41fd8aa04a7463 Mon Sep 17 00:00:00 2001
From: Tycho Andersen <tycho.andersen at canonical.com>
Date: Thu, 2 Feb 2017 10:30:43 +0100
Subject: [PATCH] util: update setproctitle comments
Signed-off-by: Tycho Andersen <tycho.andersen at canonical.com>
---
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 24000aa..b6a351c 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)
{
More information about the lxc-devel
mailing list