From 3d79c72e9aceb883a6d065bb07ab4f955cd67b4a Mon Sep 17 00:00:00 2001 From: multiplexd Date: Tue, 17 Jul 2018 18:46:55 +0100 Subject: [PATCH] Update OpenBSD maximum PID The source code correctly states that the maximum PID number in the OpenBSD kernel is fixed in sys/sys/proc.h, however this was updated in revision 1.215 (two years ago!) from 32766 to 99999. --- openbsd/Platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openbsd/Platform.c b/openbsd/Platform.c index 01b6c478..18553c2d 100644 --- a/openbsd/Platform.c +++ b/openbsd/Platform.c @@ -197,7 +197,7 @@ void Platform_getLoadAverage(double* one, double* five, double* fifteen) { int Platform_getMaxPid() { // this is hard-coded in sys/sys/proc.h - no sysctl exists - return 32766; + return 99999; } double Platform_setCPUValues(Meter* this, int cpu) {