[Toybox] [PATCH] ulimit: actually use the units we claim.

enh enh at google.com
Thu May 18 10:31:39 PDT 2023


On Thu, May 18, 2023 at 10:11 AM Rob Landley <rob at landley.net> wrote:

> On 5/17/23 12:40, enh wrote:
> >     So... display, change, display what you changed it to? (Except you
> know what you
> >     changed it to, there's no deltas, so it's just... reading back what
> you wrote to
> >     confirm it took?)
> >
> > yeah, exactly. (your later "what if there's a hard limit in the way?"
> point is a
> > non-testing example where you might want to do that.)
>
> Fetching it back and printing "Warning: -a capped at hard limit %lld" if
> they
> don't match might be a better approach? (Could not set to requested value,
> print
> warning to stderr.)
>

yeah, that would probably be better for everyone.

(i didn't try a debian codesearch to see if anyone's using ulimit in
scripts.)


> Again, probably an "ask chet". (Probably tomorrow, still recovering from
> travel.
> International flights have gotten a bit less comfortable since pre-pandemic
> times, which is saying something...)
>
> Rob
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20230518/8349db1c/attachment.htm>


More information about the Toybox mailing list