chiark / gitweb /
dot/profile: Reduce the default ulimit a smidge.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 26 Aug 2020 12:11:42 +0000 (13:11 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 26 Aug 2020 12:11:42 +0000 (13:11 +0100)
commit1951337cfe5993e14a5f25c6a941950de9f1498c
tree5721f44da14415cbd8940542a2205b3b94ef8e10
parentdd794b2081493f6046048f01e8dd7da4e994218a
dot/profile: Reduce the default ulimit a smidge.

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.
dot/profile