summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
dd794b2)
The dash(1) shell has an awful bug on 32-bit systems. Although the
limit is presented to the shell as a number of kilobytes, it's presented
to the setrlimit(2) syscall as a number of /bytes/. It seems that
dash(1) performs this calculation using 32-bit integers on 32-bit
platforms, and, with the chosen default of
4194304, ends up with zero,
and nothing can start up.
Reduce the limit by a kilobyte to avoid frying dash(1)'s brain.
## need a lot of memory for a legitimate reason than for it to be a memory
## leak or some other bug that's going to cause swap death for no good
## reason.
## need a lot of memory for a legitimate reason than for it to be a memory
## leak or some other bug that's going to cause swap death for no good
## reason.
-ulimit -Sv $(mdw-conf memory-limit 4194304)
+ulimit -Sv $(mdw-conf memory-limit 4194303)
## Establish a temporary directory.
case ${TMPDIR+t} in
## Establish a temporary directory.
case ${TMPDIR+t} in