Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 May 2026 22:07:05 +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-main@FreeBSD.org
Subject:   git: b5dce0ae4f78 - main - login_class: Fix kqueues, pipebuf resource types
Message-ID:  <6a1a0e09.3d024.b2b496d@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by des:

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

commit b5dce0ae4f78251f56ffcb6c6a58b9e6c20380e0
Author:     Dag-Erling Smørgrav <des@FreeBSD.org>
AuthorDate: 2026-05-29 22:06:44 +0000
Commit:     Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2026-05-29 22:06:44 +0000

    login_class: Fix kqueues, pipebuf resource types
    
    * kqueues is a count but is listed as a size
    
    * pipebuf is a size but is listed as a count
    
    PR:             295623
    MFC after:      1 week
    Fixes:          a4c04958f526 ("libutil: support RLIMIT_PIPEBUF")
    Fixes:          85a0ddfd0b26 ("Add a resource limit for the total...")
    Reviewed by:    kib
    Differential Revision:  https://reviews.freebsd.org/D57333
---
 lib/libutil/login_class.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/libutil/login_class.c b/lib/libutil/login_class.c
index 90e4e01f7c3b..8a465e2eb24e 100644
--- a/lib/libutil/login_class.c
+++ b/lib/libutil/login_class.c
@@ -63,9 +63,9 @@ static struct login_res {
     { "vmemoryuse",      login_getcapsize, RLIMIT_VMEM    },
     { "pseudoterminals", login_getcapnum,  RLIMIT_NPTS    },
     { "swapuse",         login_getcapsize, RLIMIT_SWAP    },
-    { "kqueues",         login_getcapsize, RLIMIT_KQUEUES },
+    { "kqueues",         login_getcapnum,  RLIMIT_KQUEUES },
     { "umtxp",           login_getcapnum,  RLIMIT_UMTXP   },
-    { "pipebuf",         login_getcapnum,  RLIMIT_PIPEBUF },
+    { "pipebuf",         login_getcapsize, RLIMIT_PIPEBUF },
     { "vms",             login_getcapnum,  RLIMIT_VMM     },
     { NULL,              0,                0              }
 };


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a1a0e09.3d024.b2b496d>