On 12 December 2012 10:45, Pawel Jakub Dawidek <p...@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
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to