Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 May 2001 09:56:08 +0200 (CEST)
From:      Paul Herman <pherman@frenchfries.net>
To:        <freebsd-hackers@FreeBSD.ORG>
Subject:   ulimit -b in /bin/sh
Message-ID:  <Pine.BSF.4.33.0105110925510.12233-100000@husten.security.at12.de>

next in thread | raw e-mail | index | archive | help
Not sure if -arch is a better list for this.  If so, followups there.

The units for sbsize in limits is currently displayed in bytes, not
kilobytes.  Changing the output to kb to be consistent with the others
(datasize, stacksize, memoryuse, etc.) shouldn't be a problem...

The problem would be with "limits -e".  Right now, /bin/sh expects
sbsize, i.e.  "ulimit -b", to be in bytes rather than kilobytes.
Ideally, /bin/sh should take "ulimit -b 1024" to mean "set sbsize
limit to 1MB", just like "ulimit -m 1024" means "set memoryuse to 1MB."

Now, get out your POLA guns.  Would this change to /bin/sh be too
astonishing?  Are we stuck with the way it is now, or is it best to
nip it in the bud and change this behavior now?

-Paul.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.33.0105110925510.12233-100000>