summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjoel <joel@FreeBSD.org>2013-09-19 19:43:38 +0000
committerjoel <joel@FreeBSD.org>2013-09-19 19:43:38 +0000
commitbd6ef8adfa4c92d005ce09a50271de26ac76a1df (patch)
tree50ce98726490d7cc52799cbbf7b279a243b19183
parentc6151e30b1f342db038baea021193c846e849b34 (diff)
downloadFreeBSD-src-bd6ef8adfa4c92d005ce09a50271de26ac76a1df.zip
FreeBSD-src-bd6ef8adfa4c92d005ce09a50271de26ac76a1df.tar.gz
Minor mdoc improvements.
Approved by: re (blanket)
-rw-r--r--lib/libc/sys/procctl.28
-rw-r--r--usr.bin/protect/protect.14
2 files changed, 7 insertions, 5 deletions
diff --git a/lib/libc/sys/procctl.2 b/lib/libc/sys/procctl.2
index ee49bc8..32bf34d 100644
--- a/lib/libc/sys/procctl.2
+++ b/lib/libc/sys/procctl.2
@@ -54,7 +54,7 @@ to control as many of the selected possibles as possible.
An error is only returned if no selected processes successfully complete
the request.
The following identifier types are supported:
-.Bl -tag -width Dv P_PGID
+.Bl -tag -width "Dv P_PGID"
.It Dv P_PID
Control the process with the process ID
.Fa id .
@@ -67,7 +67,7 @@ The control request to perform is specified by the
.Fa cmd
argument.
The following commands are supported:
-.Bl -tag -width Dv PROC_SPROTECT
+.Bl -tag -width "Dv PROC_SPROTECT"
.It Dv PROC_SPROTECT
Set process protection state.
This is used to mark a process as protected from being killed if the system
@@ -77,7 +77,7 @@ The
parameter must point to an integer containing an operation and zero or more
optional flags.
The following operations are supported:
-.Bl -tag -width Dv PPROT_CLEAR
+.Bl -tag -width "Dv PPROT_CLEAR"
.It Dv PPROT_SET
Mark the selected processes as protected.
.It Dv PPROT_CLEAR
@@ -85,7 +85,7 @@ Clear the protected state of selected processes.
.El
.Pp
The following optional flags are supported:
-.Bl -tag -width Dv PPROT_DESCEND
+.Bl -tag -width "Dv PPROT_DESCE"
.It Dv PPROT_DESCEND
Apply the requested operation to all child processes of each selected process
in addition to each selected process.
diff --git a/usr.bin/protect/protect.1 b/usr.bin/protect/protect.1
index 5a494ee..6ba5d0e 100644
--- a/usr.bin/protect/protect.1
+++ b/usr.bin/protect/protect.1
@@ -46,7 +46,7 @@ The kernel does not kill protected processes when swap space is exhausted.
Note that this protected state is not inherited by child processes by default.
.Pp
The options are:
-.Bl -tag -width indent
+.Bl -tag -width XXXXXXXXXX
.It Fl c
Remove protection from the specified processes.
.It Fl d
@@ -74,9 +74,11 @@ flags may be specified when adjusting the state of existing processes.
Mark the Xorg server as protected:
.Pp
.Dl "pgrep Xorg | xargs protect -p"
+.Pp
Protect all ssh sessions and their child processes:
.Pp
.Dl "pgrep sshd | xargs protect -dip"
+.Pp
Remove protection from all current and future processes:
.Pp
.Dl "protect -cdi -p 1"
OpenPOWER on IntegriCloud