Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 04 Jun 2026 14:40:29 +0000
From:      Dag-Erling=?utf-8?Q? Sm=C3=B8rg?=rav <des@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 7ad1006a20e4 - stable/15 - sh: Fix pipebuf limit
Message-ID:  <6a218e5d.3c363.35bdf032@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch stable/15 has been updated by des:

URL: https://cgit.FreeBSD.org/src/commit/?id=7ad1006a20e4d3381c079d8eacb050b1f3b9fbfc

commit 7ad1006a20e4d3381c079d8eacb050b1f3b9fbfc
Author:     Dag-Erling Smørgrav <des@FreeBSD.org>
AuthorDate: 2026-06-01 08:51:24 +0000
Commit:     Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2026-06-04 14:40:17 +0000

    sh: Fix pipebuf limit
    
    Since the factor is not 1, we need to provide a unit.
    
    MFC after:      1 week
    Fixes:          5d92f20c7d31 ("bin/sh: support RLIMIT_PIPEBUF")
    Reviewed by:    kib
    Differential Revision:  https://reviews.freebsd.org/D57352
    
    (cherry picked from commit dfd2273d27627313f944650840381e878077e825)
---
 bin/sh/miscbltin.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/sh/miscbltin.c b/bin/sh/miscbltin.c
index bbf0aa5b8bde..a13a1a05aef2 100644
--- a/bin/sh/miscbltin.c
+++ b/bin/sh/miscbltin.c
@@ -516,7 +516,7 @@ static const struct limits limits[] = {
 	{ "umtx shared locks",	(char *)0,	RLIMIT_UMTXP,	   1, 'o' },
 #endif
 #ifdef RLIMIT_PIPEBUF
-	{ "pipebuf",		(char *)0,	RLIMIT_PIPEBUF, 1024, 'y' },
+	{ "pipebuf",		"kbytes",	RLIMIT_PIPEBUF, 1024, 'y' },
 #endif
 	{ (char *) 0,		(char *)0,	0,		   0, '\0' }
 };


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a218e5d.3c363.35bdf032>