From: Sami Kerola Date: Sun, 22 Feb 2015 14:41:34 +0000 (+0000) Subject: prlimit: tell in --verbose output which pid got the new limit X-Git-Tag: v2.27-rc1~435 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=288cb6f5dd72e4f4fe7dfb45015eaca6d7317995;p=thirdparty%2Futil-linux.git prlimit: tell in --verbose output which pid got the new limit Signed-off-by: Sami Kerola --- diff --git a/sys-utils/prlimit.c b/sys-utils/prlimit.c index ddab76e230..0fa5d57995 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