Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src add "maxthread" tunable to login.conf to adjust RLIMIT_NTHR.
details: https://anonhg.NetBSD.org/src/rev/8b2b95a29468
branches: trunk
changeset: 787714:8b2b95a29468
user: yamt <yamt%NetBSD.org@localhost>
date: Sat Jun 29 04:52:55 2013 +0000
description:
add "maxthread" tunable to login.conf to adjust RLIMIT_NTHR.
PR/47626
ok'ed by christos
diffstat:
lib/libutil/login_cap.c | 5 +++--
share/man/man5/login.conf.5 | 9 +++++++--
2 files changed, 10 insertions(+), 4 deletions(-)
diffs (56 lines):
diff -r 108a6c3eb3c8 -r 8b2b95a29468 lib/libutil/login_cap.c
--- a/lib/libutil/login_cap.c Fri Jun 28 22:13:56 2013 +0000
+++ b/lib/libutil/login_cap.c Sat Jun 29 04:52:55 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: login_cap.c,v 1.30 2012/04/07 16:16:34 christos Exp $ */
+/* $NetBSD: login_cap.c,v 1.31 2013/06/29 04:52:55 yamt Exp $ */
/*-
* Copyright (c) 1995,1997 Berkeley Software Design, Inc. All rights reserved.
@@ -36,7 +36,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: login_cap.c,v 1.30 2012/04/07 16:16:34 christos Exp $");
+__RCSID("$NetBSD: login_cap.c,v 1.31 2013/06/29 04:52:55 yamt Exp $");
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@ -420,6 +420,7 @@
{ RLIMIT_RSS, R_CSIZE, "memoryuse", },
{ RLIMIT_MEMLOCK, R_CSIZE, "memorylocked", },
{ RLIMIT_NPROC, R_CNUMB, "maxproc", },
+ { RLIMIT_NTHR, R_CNUMB, "maxthread", },
{ RLIMIT_NOFILE, R_CNUMB, "openfiles", },
{ RLIMIT_CORE, R_CSIZE, "coredumpsize", },
{ RLIMIT_SBSIZE, R_CSIZE, "sbsize", },
diff -r 108a6c3eb3c8 -r 8b2b95a29468 share/man/man5/login.conf.5
--- a/share/man/man5/login.conf.5 Fri Jun 28 22:13:56 2013 +0000
+++ b/share/man/man5/login.conf.5 Sat Jun 29 04:52:55 2013 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: login.conf.5,v 1.26 2012/04/30 11:07:28 njoly Exp $
+.\" $NetBSD: login.conf.5,v 1.27 2013/06/29 04:52:55 yamt Exp $
.\"
.\" Copyright (c) 1995,1996,1997 Berkeley Software Design, Inc.
.\" All rights reserved.
@@ -33,7 +33,7 @@
.\"
.\" BSDI login.conf.5,v 2.19 1998/02/19 23:39:39 prb Exp
.\"
-.Dd November 18, 2008
+.Dd June 29, 2013
.Dt LOGIN.CONF 5
.Os
.Sh NAME
@@ -167,6 +167,11 @@
Maximum number of processes.
.\"
.sp
+.It Sy maxthread Ta number Ta "" Ta
+Maximum number of threads.
+First thread of each process are not counted against this.
+.\"
+.sp
.It Sy memorylocked Ta size Ta "" Ta
Maximum locked in core memory size limit.
.\"
Home |
Main Index |
Thread Index |
Old Index