go-units icon indicating copy to clipboard operation
go-units copied to clipboard

[feat] support "infinity" in ulimit values, as an alias to `-1`

Open gfx opened this issue 4 years ago • 1 comments

Hello, team!

I'd like to use --ulimit memlock=infinity, as sys/resource.h provides RLIM_INFINITY. Fortunately, -1 is already supported as the infinity, so I've implemented a new keyword infinity as an alias to -1.

  • [x] unit tests

gfx avatar Apr 15 '21 07:04 gfx

@thaJeztah Could you take a look at this?

gfx avatar Aug 08 '23 02:08 gfx