Minor mdoc improvements.
Approved by: re (blanket)
This commit is contained in:
parent
a566e8e3c5
commit
828378a6d3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=255711
@ -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
|
An error is only returned if no selected processes successfully complete
|
||||||
the request.
|
the request.
|
||||||
The following identifier types are supported:
|
The following identifier types are supported:
|
||||||
.Bl -tag -width Dv P_PGID
|
.Bl -tag -width "Dv P_PGID"
|
||||||
.It Dv P_PID
|
.It Dv P_PID
|
||||||
Control the process with the process ID
|
Control the process with the process ID
|
||||||
.Fa id .
|
.Fa id .
|
||||||
@ -67,7 +67,7 @@ The control request to perform is specified by the
|
|||||||
.Fa cmd
|
.Fa cmd
|
||||||
argument.
|
argument.
|
||||||
The following commands are supported:
|
The following commands are supported:
|
||||||
.Bl -tag -width Dv PROC_SPROTECT
|
.Bl -tag -width "Dv PROC_SPROTECT"
|
||||||
.It Dv PROC_SPROTECT
|
.It Dv PROC_SPROTECT
|
||||||
Set process protection state.
|
Set process protection state.
|
||||||
This is used to mark a process as protected from being killed if the system
|
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
|
parameter must point to an integer containing an operation and zero or more
|
||||||
optional flags.
|
optional flags.
|
||||||
The following operations are supported:
|
The following operations are supported:
|
||||||
.Bl -tag -width Dv PPROT_CLEAR
|
.Bl -tag -width "Dv PPROT_CLEAR"
|
||||||
.It Dv PPROT_SET
|
.It Dv PPROT_SET
|
||||||
Mark the selected processes as protected.
|
Mark the selected processes as protected.
|
||||||
.It Dv PPROT_CLEAR
|
.It Dv PPROT_CLEAR
|
||||||
@ -85,7 +85,7 @@ Clear the protected state of selected processes.
|
|||||||
.El
|
.El
|
||||||
.Pp
|
.Pp
|
||||||
The following optional flags are supported:
|
The following optional flags are supported:
|
||||||
.Bl -tag -width Dv PPROT_DESCEND
|
.Bl -tag -width "Dv PPROT_DESCE"
|
||||||
.It Dv PPROT_DESCEND
|
.It Dv PPROT_DESCEND
|
||||||
Apply the requested operation to all child processes of each selected process
|
Apply the requested operation to all child processes of each selected process
|
||||||
in addition to each selected process.
|
in addition to each selected process.
|
||||||
|
@ -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.
|
Note that this protected state is not inherited by child processes by default.
|
||||||
.Pp
|
.Pp
|
||||||
The options are:
|
The options are:
|
||||||
.Bl -tag -width indent
|
.Bl -tag -width XXXXXXXXXX
|
||||||
.It Fl c
|
.It Fl c
|
||||||
Remove protection from the specified processes.
|
Remove protection from the specified processes.
|
||||||
.It Fl d
|
.It Fl d
|
||||||
@ -74,9 +74,11 @@ flags may be specified when adjusting the state of existing processes.
|
|||||||
Mark the Xorg server as protected:
|
Mark the Xorg server as protected:
|
||||||
.Pp
|
.Pp
|
||||||
.Dl "pgrep Xorg | xargs protect -p"
|
.Dl "pgrep Xorg | xargs protect -p"
|
||||||
|
.Pp
|
||||||
Protect all ssh sessions and their child processes:
|
Protect all ssh sessions and their child processes:
|
||||||
.Pp
|
.Pp
|
||||||
.Dl "pgrep sshd | xargs protect -dip"
|
.Dl "pgrep sshd | xargs protect -dip"
|
||||||
|
.Pp
|
||||||
Remove protection from all current and future processes:
|
Remove protection from all current and future processes:
|
||||||
.Pp
|
.Pp
|
||||||
.Dl "protect -cdi -p 1"
|
.Dl "protect -cdi -p 1"
|
||||||
|
Loading…
Reference in New Issue
Block a user