Commit e70f447d authored by Explorer09's avatar Explorer09
Browse files

DragonFlyBSD PID_MAX is 999999.

See DragonFlyBSD source "sys/sys/proc.h".

Fixes #646
parent 71785e2d
...@@ -144,7 +144,7 @@ int Platform_getMaxPid() { ...@@ -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;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment