mirror of https://github.com/xzeldon/htop.git
Merge branch 'master' of https://github.com/hishamhm/htop
This commit is contained in:
commit
1a178ad581
|
@ -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