From 9508861ecd352401500333f5b5033344f7fd4e03 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Mon, 23 May 1994 17:17:20 +0000 Subject: Formerly pager-attr.c.~2~ --- libpager/pager-attr.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'libpager') diff --git a/libpager/pager-attr.c b/libpager/pager-attr.c index fd551d01..7fae4d74 100644 --- a/libpager/pager-attr.c +++ b/libpager/pager-attr.c @@ -15,7 +15,8 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#include "Priv.h" +#include "priv.h" +#include /* Change the attributes of the memory object underlying pager P. Args MAY_CACHE and COPY_STRATEGY are as for @@ -30,8 +31,16 @@ pager_change_attributes (struct pager *p, struct attribute_request *ar = 0; mutex_lock (&p->interlock); - assert (p->pager_state == NORMAL); + + p->may_cache = may_cache; + p->copy_strategy = copy_strategy; + if (p->pager_state == NOTINIT) + { + mutex_unlock (&p->interlock); + return; + } + if (wait) { for (ar = p->attribute_requests; ar; ar = ar->next) -- cgit v1.2.3