summaryrefslogtreecommitdiff
path: root/lib/thread/spawn+openbsd.myr
diff options
context:
space:
mode:
Diffstat (limited to 'lib/thread/spawn+openbsd.myr')
-rw-r--r--lib/thread/spawn+openbsd.myr2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/thread/spawn+openbsd.myr b/lib/thread/spawn+openbsd.myr
index 1cdf230..c925349 100644
--- a/lib/thread/spawn+openbsd.myr
+++ b/lib/thread/spawn+openbsd.myr
@@ -53,7 +53,7 @@ const spawnstk = {fn, sz
const getstk = {sz
var p, m
- p = sys.mmap((0 : byte#), sz, sys.Mprotrw, sys.Mpriv | sys.Manon, -1, 0)
+ p = sys.mmap((0 : byte#), sz, sys.Mprotrw, sys.Mpriv | sys.Manon | sys.Mstack, -1, 0)
if p == sys.Mapbad
-> p
;;