mirror of https://github.com/xzeldon/htop.git
Merge pull request #647 from Explorer09/dragonfly-pid-max
DragonFlyBSD PID_MAX is 999999.
This commit is contained in:
commit
978c9e1698
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue