From 3d9adddaaa2d7b3070a49b4a6473650ad7134dac Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Tue, 5 Sep 1995 22:14:35 +0000 Subject: (_pager_seqnos_memory_object_change_completed): Don't push the attrs_pending field negative in the case where the pager was terminated before we get called. --- libpager/chg-compl.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libpager/chg-compl.c b/libpager/chg-compl.c index b26d9647..7d3994b0 100644 --- a/libpager/chg-compl.c +++ b/libpager/chg-compl.c @@ -41,12 +41,12 @@ _pager_seqnos_memory_object_change_completed (mach_port_t obj, _pager_wait_for_seqno (p, seq); for (ar = p->attribute_requests; ar; ar = ar->next) - if (ar->may_cache == maycache && ar->copy_strategy == strat - && !--ar->attrs_pending) - break; - - if (ar) - condition_broadcast (&p->wakeup); + if (ar->may_cache == maycache && ar->copy_strategy == strat) + { + if (ar->attrs_pending && !--ar->attrs_pending) + condition_broadcast (&p->wakeup); + break; + } _pager_release_seqno (p, seq); mutex_unlock (&p->interlock); -- cgit v1.2.3