Add -P option to allow get and set limits for other processes.

Submitted by:	Andrey Zonov <andrey at zonov.org>
MFC after:	2 weeks
This commit is contained in:
Mikolaj Golub
2012-01-25 20:14:41 +00:00
parent 98623e8dda
commit 1d65b4fb8d
2 changed files with 91 additions and 7 deletions
+5 -2
View File
@@ -19,7 +19,7 @@
.\"
.\" $FreeBSD$
.\"
.Dd April 10, 2011
.Dd January 23, 2011
.Dt LIMITS 1
.Os
.Sh NAME
@@ -27,7 +27,7 @@
.Nd set or display process resource limits
.Sh SYNOPSIS
.Nm
.Op Fl C Ar class | Fl U Ar user
.Op Fl C Ar class | Fl P Ar pid | Fl U Ar user
.Op Fl SHB
.Op Fl ea
.Op Fl bcdflmnstuvpw Op Ar val
@@ -143,6 +143,9 @@ for the
class are used, if it exists, or the
.Dq Li root
class if the user is a superuser account.
.It Fl P Ar pid
Select or set limits for the process identified by the
.Ar pid .
.It Fl S
Select display or setting of
.Dq soft