summaryrefslogtreecommitdiffstats
path: root/sys-utils/prlimit.c
diff options
context:
space:
mode:
authorSami Kerola2015-02-22 15:41:34 +0100
committerKarel Zak2015-02-24 11:22:26 +0100
commit288cb6f5dd72e4f4fe7dfb45015eaca6d7317995 (patch)
tree66cc8d5346b1211531d15e86e5f2a6589f45d7c1 /sys-utils/prlimit.c
parentlibblkid: cleanup names, don't copy probing results (diff)
downloadkernel-qcow2-util-linux-288cb6f5dd72e4f4fe7dfb45015eaca6d7317995.tar.gz
kernel-qcow2-util-linux-288cb6f5dd72e4f4fe7dfb45015eaca6d7317995.tar.xz
kernel-qcow2-util-linux-288cb6f5dd72e4f4fe7dfb45015eaca6d7317995.zip
prlimit: tell in --verbose output which pid got the new limit
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'sys-utils/prlimit.c')
-rw-r--r--sys-utils/prlimit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys-utils/prlimit.c b/sys-utils/prlimit.c
index ddab76e23..0fa5d5799 100644
--- a/sys-utils/prlimit.c
+++ b/sys-utils/prlimit.c
@@ -360,7 +360,8 @@ static void do_prlimit(struct list_head *lims)
old = &lim->rlim;
if (verbose && new) {
- printf(_("New %s limit: "), lim->desc->name);
+ printf(_("New %s limit for pid %d: "), lim->desc->name,
+ pid ? pid : getpid());
if (new->rlim_cur == RLIM_INFINITY)
printf("<%s", _("unlimited"));
else