Query: protect
OS: freebsd
Section: 1
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
PROTECT(1) BSD General Commands Manual PROTECT(1)NAMEprotect -- protect processes from being killed when swap space is exhaustedSYNOPSISprotect [-i] command protect [-cdi] -g pgrp | -p pidDESCRIPTIONThe protect command is used to mark processes as protected. 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. The options are: -c Remove protection from the specified processes. -d Apply the operation to all current children of the specified processes. -i Apply the operation to all future children of the specified processes. -g pgrp Apply the operation to all processes in the specified process group. -p pid Apply the operation to the specified process. command Execute command as a protected process. Note that only one of the -p or -g flags may be specified when adjusting the state of existing processes.EXIT STATUSThe protect utility exits 0 on success, and >0 if an error occurs.EXAMPLESMark the Xorg server as protected: pgrep Xorg | xargs protect -p Protect all ssh sessions and their child processes: pgrep sshd | xargs protect -dip Remove protection from all current and future processes: protect -cdi -p 1SEE ALSOprocctl(2)BUGSIf you protect a runaway process that allocates all memory the system will deadlock.BSDSeptember 19, 2013 BSD
Related Man Pages |
---|
ptree(1) - opensolaris |
ktrace(1) - freebsd |
prenice(1) - netbsd |
trace(1) - freebsd |
pkill(1) - mojave |
Similar Topics in the Unix Linux Community |
---|
antivirus for sun solaris |
Usernames and processes most used |
xargs -P |
Capture child processes and change return values question |
How to protect system from cloning? |