From ed898c729a453662a1090ce1347387fc97512599 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sun, 28 Dec 2014 23:53:23 +0000 Subject: [PATCH] sysconf: use nproc value --- Library/libs/sysconf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/libs/sysconf.c b/Library/libs/sysconf.c index d502f78d..053c1fea 100644 --- a/Library/libs/sysconf.c +++ b/Library/libs/sysconf.c @@ -15,7 +15,7 @@ long sysconf(int name) case _SC_ARG_MAX: return 512; case _SC_CHILD_MAX: - /* nproc -1 ? */ + return info.nproc - 1; case _SC_HOST_NAME_MAX: /* we will implement get/sethostname and domain name in userspace */ return 256; -- 2.34.1