From ed493fe5e686de545ff3a3ea5884fba6faa921da Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Wed, 1 Jun 1994 21:43:59 +0000 Subject: entered into RCS --- libpager/pager-attr.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'libpager/pager-attr.c') diff --git a/libpager/pager-attr.c b/libpager/pager-attr.c index 7fae4d74..762bb971 100644 --- a/libpager/pager-attr.c +++ b/libpager/pager-attr.c @@ -32,6 +32,17 @@ pager_change_attributes (struct pager *p, mutex_lock (&p->interlock); + /* If there's nothing to do we might be able to return. However, + if the user asked us to wait, and there are pending changes, + then we have to do the work anyway because we must follow the + pending change. */ + if (p->may_cache == may_cache && p->copy_strategy == copy_strategy + && ! (p->attribute_requests && wait)) + { + mutex_unlock (&p->interlock); + return; + } + p->may_cache = may_cache; p->copy_strategy = copy_strategy; -- cgit v1.2.3