Date: Sat, 5 Oct 2024 07:11:10 GMT From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: d5ed8778bf3b - stable/14 - bin/sh: support RLIMIT_PIPEBUF Message-ID: <202410050711.4957BApl000880@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=d5ed8778bf3b808d637c7913da66dc31b892e5f7 commit d5ed8778bf3b808d637c7913da66dc31b892e5f7 Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2024-09-10 04:12:27 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2024-10-05 07:08:54 +0000 bin/sh: support RLIMIT_PIPEBUF (cherry picked from commit 5d92f20c7d316aca521d4db4c1dab0f2d0e92c36) --- bin/sh/miscbltin.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/sh/miscbltin.c b/bin/sh/miscbltin.c index 5d5c137a7d11..39b3effb99df 100644 --- a/bin/sh/miscbltin.c +++ b/bin/sh/miscbltin.c @@ -489,6 +489,9 @@ static const struct limits limits[] = { #endif #ifdef RLIMIT_UMTXP { "umtx shared locks", (char *)0, RLIMIT_UMTXP, 1, 'o' }, +#endif +#ifdef RLIMIT_PIPEBUF + { "pipebuf", (char *)0, RLIMIT_PIPEBUF, 1024, 'y' }, #endif { (char *) 0, (char *)0, 0, 0, '\0' } }; @@ -525,7 +528,7 @@ ulimitcmd(int argc __unused, char **argv __unused) struct rlimit limit; what = 'f'; - while ((optc = nextopt("HSatfdsmcnuvlbpwko")) != '\0') + while ((optc = nextopt("HSatfdsmcnuvlbpwkoy")) != '\0') switch (optc) { case 'H': how = HARD;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202410050711.4957BApl000880>