mirror of https://github.com/xzeldon/htop.git
DragonFlyBSD PID_MAX is 999999.
See DragonFlyBSD source "sys/sys/proc.h". Fixes #646
This commit is contained in:
parent
71785e2ded
commit
e70f447d54
|
@ -144,7 +144,7 @@ int Platform_getMaxPid() {
|
|||
size_t size = sizeof(maxPid);
|
||||
int err = sysctlbyname("kern.pid_max", &maxPid, &size, NULL, 0);
|
||||
if (err) {
|
||||
return 99999;
|
||||
return 999999;
|
||||
}
|
||||
return maxPid;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue