mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
DragonFlyBSD PID_MAX is 999999.
See DragonFlyBSD source "sys/sys/proc.h". Fixes #646
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user