Bug 135700 - [patch] Add an ability to run inetd(8) with P_PROTECTED flag set
Summary: [patch] Add an ability to run inetd(8) with P_PROTECTED flag set
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 4.11-STABLE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-18 13:50 UTC by Dmitry Sivachenko
Modified: 2013-06-06 19:40 UTC (History)
0 users

See Also:


Attachments
file.diff (1.32 KB, patch)
2009-06-18 13:50 UTC, Dmitry Sivachenko
no flags Details | Diff
file.diff (455 bytes, patch)
2009-06-18 13:50 UTC, Dmitry Sivachenko
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Sivachenko 2009-06-18 13:50:00 UTC
Sometimes when OS is running out of swap, swap pager can kill important
processes like inetd, sshd, etc.

This patch adds '-i' (means "immortal") option to inetd, which,
when specified, will set P_PROTECTED flag for inetd process, preventing
swap pager to kill inetd.

This will allow at least to login to the affected machine (via telnet or
ssh if sshd is started from inetd) and fix the issue.

This patch was made against inetd found in 7.2-STABLE.
Comment 1 Guy Helmer freebsd_committer freebsd_triage 2013-06-06 19:37:51 UTC
State Changed
From-To: open->closed

attilio added this functionality to inetd (and other important 
daemons) in rev 199804.