Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Set ksem_max before installing the syscall package.
details: https://anonhg.NetBSD.org/src/rev/9ceadaaabf00
branches: trunk
changeset: 847306:9ceadaaabf00
user: ad <ad%NetBSD.org@localhost>
date: Tue Dec 17 18:10:36 2019 +0000
description:
Set ksem_max before installing the syscall package.
diffstat:
sys/kern/uipc_sem.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (35 lines):
diff -r 5e84a7902210 -r 9ceadaaabf00 sys/kern/uipc_sem.c
--- a/sys/kern/uipc_sem.c Tue Dec 17 18:08:15 2019 +0000
+++ b/sys/kern/uipc_sem.c Tue Dec 17 18:10:36 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uipc_sem.c,v 1.56 2019/12/15 20:25:25 joerg Exp $ */
+/* $NetBSD: uipc_sem.c,v 1.57 2019/12/17 18:10:36 ad Exp $ */
/*-
* Copyright (c) 2011, 2019 The NetBSD Foundation, Inc.
@@ -60,7 +60,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uipc_sem.c,v 1.56 2019/12/15 20:25:25 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_sem.c,v 1.57 2019/12/17 18:10:36 ad Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@@ -143,7 +143,7 @@
};
struct sysctllog *ksem_clog;
-int ksem_max;
+int ksem_max = KSEM_MAX;
static int
name_copyin(const char *uname, char **name)
@@ -214,7 +214,6 @@
/* Define module-specific sysctl tree */
- ksem_max = KSEM_MAX;
ksem_clog = NULL;
sysctl_createv(&ksem_clog, 0, NULL, &rnode,
Home |
Main Index |
Thread Index |
Old Index