[lxc-devel] [lxc/master] conf: log prlimit setup
brauner on Github
lxc-bot at linuxcontainers.org
Wed Oct 10 11:53:38 UTC 2018
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 364 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20181010/ea65018f/attachment.bin>
-------------- next part --------------
From 2de12765e2286ca59099fd22b27460ccfe575682 Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brauner at ubuntu.com>
Date: Wed, 10 Oct 2018 13:53:00 +0200
Subject: [PATCH] conf: log prlimit setup
Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
---
src/lxc/conf.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/lxc/conf.c b/src/lxc/conf.c
index 856fde1dd..a45d88291 100644
--- a/src/lxc/conf.c
+++ b/src/lxc/conf.c
@@ -2647,8 +2647,10 @@ int setup_resource_limits(struct lxc_list *limits, pid_t pid)
SYSERROR("Failed to set limit %s", lim->resource);
return -1;
}
+
+ TRACE("Setup \"%s\" limit", lim->resource);
#else
- ERROR("Cannot set limit %s as prlimit is missing", lim->resource);
+ ERROR("Cannot set limit \"%s\" as prlimit is missing", lim->resource);
return -1;
#endif
}
More information about the lxc-devel
mailing list