diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-12-10 11:20:03 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-12-10 11:20:03 +0100 |
commit | e4b0e862252ac5c50c533b46dfe839b7c45639ac (patch) | |
tree | 023a5eff1cf2b0cda4c9b4d6b7b4e01e920b7913 /src/core/execute.c | |
parent | 59c74f21751c5af2e6e5118a8d09c16e0e1efa0f (diff) | |
parent | 3c11da9d80e804801575a0a9f6db116e12fdd01d (diff) |
Merge pull request #2056 from evverx/expose-soft-limits-on-the-bus
Expose soft limits on the bus
Diffstat (limited to 'src/core/execute.c')
-rw-r--r-- | src/core/execute.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/core/execute.c b/src/core/execute.c index 4f67a9de83..9b76861919 100644 --- a/src/core/execute.c +++ b/src/core/execute.c @@ -2413,9 +2413,12 @@ void exec_context_dump(ExecContext *c, FILE* f, const char *prefix) { prefix, c->oom_score_adjust); for (i = 0; i < RLIM_NLIMITS; i++) - if (c->rlimit[i]) - fprintf(f, "%s%s: " RLIM_FMT " " RLIM_FMT "\n", - prefix, rlimit_to_string(i), c->rlimit[i]->rlim_cur, c->rlimit[i]->rlim_max); + if (c->rlimit[i]) { + fprintf(f, "%s%s: " RLIM_FMT "\n", + prefix, rlimit_to_string(i), c->rlimit[i]->rlim_max); + fprintf(f, "%s%sSoft: " RLIM_FMT "\n", + prefix, rlimit_to_string(i), c->rlimit[i]->rlim_cur); + } if (c->ioprio_set) { _cleanup_free_ char *class_str = NULL; |