sysconf: use nproc value
authorAlan Cox <alan@linux.intel.com>
Sun, 28 Dec 2014 23:53:23 +0000 (23:53 +0000)
committerAlan Cox <alan@linux.intel.com>
Sun, 28 Dec 2014 23:53:23 +0000 (23:53 +0000)
Library/libs/sysconf.c

index d502f78..053c1fe 100644 (file)
@@ -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;