ryantimwilson / rpms / systemd

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