diff options
author | 1997-02-14 16:39:23 +0000 | |
---|---|---|
committer | 1997-02-14 16:39:23 +0000 | |
commit | 94197cdda55b0d6a61f297ee18b5ecb079902f19 (patch) | |
tree | 3c96bda4d07c3cd5662cce48deb93008ba58036b /sys/kern/exec_subr.c | |
parent | #include <stdlib.h> (diff) | |
download | wireguard-openbsd-94197cdda55b0d6a61f297ee18b5ecb079902f19.tar.xz wireguard-openbsd-94197cdda55b0d6a61f297ee18b5ecb079902f19.zip |
round RLIMIT_STACK; problem spotted by jfw@jfwhome.funhousecom
Diffstat (limited to 'sys/kern/exec_subr.c')
-rw-r--r-- | sys/kern/exec_subr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/exec_subr.c b/sys/kern/exec_subr.c index e8810979a6d..8a766bee2d8 100644 --- a/sys/kern/exec_subr.c +++ b/sys/kern/exec_subr.c @@ -217,7 +217,7 @@ exec_setup_stack(p, epp) epp->ep_maxsaddr = USRSTACK - MAXSSIZ; epp->ep_minsaddr = USRSTACK; - epp->ep_ssize = p->p_rlimit[RLIMIT_STACK].rlim_cur; + epp->ep_ssize = round_page(p->p_rlimit[RLIMIT_STACK].rlim_cur); /* * set up commands for stack. note that this takes *two*, one to |