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