summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1994-11-17 06:24:25 +0000
committerdg <dg@FreeBSD.org>1994-11-17 06:24:25 +0000
commit245c52ff2f06759e2ef9d05b70f992dcc7f70fc9 (patch)
tree5a30c6b267520ca850bd213548a28e9316d05fbf
parenta28860212fea45a16ea27f2fe26af479df7d1bcc (diff)
downloadFreeBSD-src-245c52ff2f06759e2ef9d05b70f992dcc7f70fc9.zip
FreeBSD-src-245c52ff2f06759e2ef9d05b70f992dcc7f70fc9.tar.gz
Don't ever try to kill off process 1 - even if we are out of swap space
and it's the candidate pig.
-rw-r--r--sys/vm/vm_pageout.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c
index 151b858..37267d3 100644
--- a/sys/vm/vm_pageout.c
+++ b/sys/vm/vm_pageout.c
@@ -65,7 +65,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: vm_pageout.c,v 1.24 1994/11/06 05:07:53 davidg Exp $
+ * $Id: vm_pageout.c,v 1.25 1994/11/14 02:57:40 davidg Exp $
*/
/*
@@ -792,7 +792,8 @@ rescan1:
/*
* if this is a system process, skip it
*/
- if ((p->p_flag & P_SYSTEM) || ((p->p_pid < 48) && (vm_swap_size != 0))) {
+ if ((p->p_flag & P_SYSTEM) || (p->p_pid == 1) ||
+ ((p->p_pid < 48) && (vm_swap_size != 0))) {
continue;
}
OpenPOWER on IntegriCloud