Skip to content

Commit

Permalink
core: dump rlim_cur too
Browse files Browse the repository at this point in the history
Cherry-picked from: fdbbadb
Related: #1351415
  • Loading branch information
evverx authored and lnykryn committed Jul 12, 2016
1 parent b53ec8d commit 0c4a515
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/execute.c
Expand Up @@ -2254,8 +2254,8 @@ void exec_context_dump(ExecContext *c, FILE* f, const char *prefix) {

for (i = 0; i < RLIM_NLIMITS; i++)
if (c->rlimit[i])
fprintf(f, "%s%s: "RLIM_FMT"\n",
prefix, rlimit_to_string(i), c->rlimit[i]->rlim_max);
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->ioprio_set) {
_cleanup_free_ char *class_str = NULL;
Expand Down

0 comments on commit 0c4a515

Please sign in to comment.