Unix and Linux Discussions Tagged with processes |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
5 |
7,438 |
UNIX for Beginners Questions & Answers |
|
|
|
8 |
10,856 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
4,718 |
UNIX for Beginners Questions & Answers |
|
|
|
8 |
10,711 |
UNIX for Beginners Questions & Answers |
|
|
|
19 |
15,613 |
AIX |
|
|
|
3 |
3,814 |
Shell Programming and Scripting |
|
|
|
5 |
3,297 |
UNIX for Beginners Questions & Answers |
|
|
|
24 |
22,079 |
AIX |
|
|
|
4 |
4,252 |
Shell Programming and Scripting |
|
|
|
3 |
2,242 |
Shell Programming and Scripting |
|
|
|
2 |
2,154 |
Shell Programming and Scripting |
|
|
|
1 |
2,675 |
Shell Programming and Scripting |
|
|
|
6 |
1,918 |
Shell Programming and Scripting |
|
|
|
1 |
5,328 |
Linux |
|
|
|
2 |
1,815 |
UNIX for Dummies Questions & Answers |
|
|
|
13 |
3,716 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,180 |
Shell Programming and Scripting |
|
|
|
1 |
2,473 |
UNIX for Dummies Questions & Answers |
|
|
|
11 |
41,293 |
Linux |
|
|
|
0 |
4,897 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
8,666 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
5,714 |
Programming |
|
|
|
6 |
8,675 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
26,141 |
AIX |
|
|
|
6 |
47,902 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
5,065 |
Shell Programming and Scripting |
|
|
|
1 |
1,773 |
Shell Programming and Scripting |
|
|
|
0 |
1,963 |
Complex Event Processing RSS News |
|
|
|
3 |
8,924 |
Shell Programming and Scripting |
|
|
|
1 |
2,734 |
Filesystems, Disks and Memory |
|
|
|
13 |
8,486 |
SCO |
|
|
|
0 |
2,423 |
Complex Event Processing RSS News |
|
|
|
3 |
6,394 |
Solaris |
|
|
|
1 |
6,854 |
Shell Programming and Scripting |
|
|
|
1 |
2,533 |
Shell Programming and Scripting |
|
|
|
9 |
30,045 |
Shell Programming and Scripting |
|
|
|
3 |
19,013 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
2,651 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
1,560 |
Software Releases - RSS News |
|
|
|
2 |
5,726 |
AIX |
PROTECT(1) BSD General Commands Manual PROTECT(1)
NAME
protect -- protect processes from being killed when swap space is exhausted
SYNOPSIS
protect [-i] command
protect [-cdi] -g pgrp | -p pid
DESCRIPTION
The 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 STATUS
The protect utility exits 0 on success, and >0 if an error occurs.
EXAMPLES
Mark 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 1
SEE ALSO
procctl(2)
BUGS
If you protect a runaway process that allocates all memory the system will deadlock.
BSD
September 19, 2013 BSD