naccyde / rpms / systemd

Forked from rpms/systemd a year ago
Clone
803fb7
From 0c4a5153b14701ffdbff2f768548d4a657b1ca9f Mon Sep 17 00:00:00 2001
803fb7
From: Evgeny Vereshchagin <evvers@ya.ru>
803fb7
Date: Fri, 27 Nov 2015 09:13:35 +0000
803fb7
Subject: [PATCH] core: dump rlim_cur too
803fb7
803fb7
Cherry-picked from: fdbbadbd0d13d3296b9aa4273aaeecd9ba6b82d1
803fb7
Related: #1351415
803fb7
---
803fb7
 src/core/execute.c | 4 ++--
803fb7
 1 file changed, 2 insertions(+), 2 deletions(-)
803fb7
803fb7
diff --git a/src/core/execute.c b/src/core/execute.c
803fb7
index 8172c8b44..e9b4359a7 100644
803fb7
--- a/src/core/execute.c
803fb7
+++ b/src/core/execute.c
803fb7
@@ -2254,8 +2254,8 @@ void exec_context_dump(ExecContext *c, FILE* f, const char *prefix) {
803fb7
 
803fb7
         for (i = 0; i < RLIM_NLIMITS; i++)
803fb7
                 if (c->rlimit[i])
803fb7
-                        fprintf(f, "%s%s: "RLIM_FMT"\n",
803fb7
-                                prefix, rlimit_to_string(i), c->rlimit[i]->rlim_max);
803fb7
+                        fprintf(f, "%s%s: " RLIM_FMT " " RLIM_FMT "\n",
803fb7
+                                prefix, rlimit_to_string(i), c->rlimit[i]->rlim_cur, c->rlimit[i]->rlim_max);
803fb7
 
803fb7
         if (c->ioprio_set) {
803fb7
                 _cleanup_free_ char *class_str = NULL;