diff options
| author | ad <ad@NetBSD.org> | 2008-06-09 11:51:43 +0000 |
|---|---|---|
| committer | ad <ad@NetBSD.org> | 2008-06-09 11:51:43 +0000 |
| commit | a3196ec57ec795e2978fe38c3e8cb6c06c36fffa (patch) | |
| tree | 305f939cba038ed0c2c269627621e9a0880af7b7 /sys | |
| parent | 0cd7bfa5988fe9d5a0e4e2787d11887cbfbe5552 (diff) | |
swappable: return false if l->l_proc->p_stat == SDYING.
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/uvm/uvm_glue.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/uvm/uvm_glue.c b/sys/uvm/uvm_glue.c index 4d2a9ea9fbe..9d48929b659 100644 --- a/sys/uvm/uvm_glue.c +++ b/sys/uvm/uvm_glue.c @@ -1,4 +1,4 @@ -/* $NetBSD: uvm_glue.c,v 1.129 2008/06/09 11:49:54 ad Exp $ */ +/* $NetBSD: uvm_glue.c,v 1.130 2008/06/09 11:51:43 ad Exp $ */ /* * Copyright (c) 1997 Charles D. Cranor and Washington University. @@ -67,7 +67,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: uvm_glue.c,v 1.129 2008/06/09 11:49:54 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: uvm_glue.c,v 1.130 2008/06/09 11:51:43 ad Exp $"); #include "opt_coredump.h" #include "opt_kgdb.h" @@ -610,6 +610,8 @@ swappable(struct lwp *l) return false; if (l->l_syncobj == &rw_syncobj || l->l_syncobj == &mutex_syncobj) return false; + if (l->l_proc->p_stat == SDYING) + return false; return true; } |
