1
0
mirror of https://github.com/xzeldon/htop.git synced 2025-04-11 04:57:07 +03:00

DragonFlyBSD PID_MAX is 999999.

See DragonFlyBSD source "sys/sys/proc.h".

Fixes 
This commit is contained in:
Explorer09 2017-07-07 20:38:04 +08:00
parent 71785e2ded
commit e70f447d54

@ -144,7 +144,7 @@ int Platform_getMaxPid() {
size_t size = sizeof(maxPid); size_t size = sizeof(maxPid);
int err = sysctlbyname("kern.pid_max", &maxPid, &size, NULL, 0); int err = sysctlbyname("kern.pid_max", &maxPid, &size, NULL, 0);
if (err) { if (err) {
return 99999; return 999999;
} }
return maxPid; return maxPid;
} }