1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-07 11:41:16 +02:00

zsh-workers/9505

This commit is contained in:
Tanaka Akira 2000-02-01 14:02:23 +00:00
parent 94c0d7e5ec
commit 1ebeb52021

View file

@ -356,6 +356,10 @@ zhalloc(size_t size)
n = (n + pgsz) & ~pgsz;
h = (Heap) mmap(NULL, n, PROT_READ | PROT_WRITE,
MMAP_FLAGS, -1, 0);
if (h == ((Heap) -1)) {
zerr("fatal error: out of heap memory", NULL, 0);
exit(1);
}
h->size = n;
}
#else