From 288cb6f5dd72e4f4fe7dfb45015eaca6d7317995 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Sun, 22 Feb 2015 14:41:34 +0000 Subject: [PATCH] prlimit: tell in --verbose output which pid got the new limit Signed-off-by: Sami Kerola --- sys-utils/prlimit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.47.2