svn commit: r244154 - head/bin/ps

Eitan Adler eadler at freebsd.org
Wed Dec 12 16:37:33 UTC 2012


On 12 December 2012 10:45, Pawel Jakub Dawidek <pjd at freebsd.org> wrote:

> +       if (sysctlbyname("kern.pid_max", &pid_max, &intsize, NULL, 0) < 0) {
> +               warn("unable to read kern.pid_max");

Silly question, when could this fail and not be fatal?

> +               pid_max = 99999;

Why not use PID_MAX from sys/proc.h?


-- 
Eitan Adler
Source, Ports, Doc committer
Bugmeister, Ports Security teams


More information about the svn-src-all mailing list