diff options
author | Michael I. Bushnell <mib@gnu.org> | 1994-05-23 17:17:20 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1994-05-23 17:17:20 +0000 |
commit | 9508861ecd352401500333f5b5033344f7fd4e03 (patch) | |
tree | dc110deb3f6502858f6b69198611e46e9e4a52b6 | |
parent | 90157cf2fb5ceba43c5ccbfccc31b31bc915cd52 (diff) |
Formerly pager-attr.c.~2~
-rw-r--r-- | libpager/pager-attr.c | 13 |
1 files changed, 11 insertions, 2 deletions
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 <assert.h> /* 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) |