artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a96c43
)
round RLIMIT_STACK; problem spotted by jfw@jfwhome.funhousecom
author
deraadt
<deraadt@openbsd.org>
Fri, 14 Feb 1997 16:39:23 +0000
(16:39 +0000)
committer
deraadt
<deraadt@openbsd.org>
Fri, 14 Feb 1997 16:39:23 +0000
(16:39 +0000)
sys/kern/exec_subr.c
patch
|
blob
|
history
diff --git
a/sys/kern/exec_subr.c
b/sys/kern/exec_subr.c
index
e881097
..
8a766be
100644
(file)
--- 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