mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-23 22:55:46 +00:00
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
Block a user