From: Alan Cox Date: Sun, 2 Dec 2018 23:45:08 +0000 (+0000) Subject: swap: set inswap flag on swapping out X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=9b71689bd507d3631546e23663232064bc12ceff;p=FUZIX.git swap: set inswap flag on swapping out --- diff --git a/Kernel/swap.c b/Kernel/swap.c index f12fe965..3b3bca01 100644 --- a/Kernel/swap.c +++ b/Kernel/swap.c @@ -144,9 +144,12 @@ static ptptr swapvictim(ptptr p, int notself) ptptr swapneeded(ptptr p, int notself) { ptptr n = swapvictim(p, notself); - if (n) + if (n) { + inswap = 1; if (swapout(n)) n = NULL; + inswap = 0; + } return n; }