Date: Wed, 12 Dec 2012 11:37:00 -0500 From: Eitan Adler <eadler@freebsd.org> To: Pawel Jakub Dawidek <pjd@freebsd.org> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r244154 - head/bin/ps Message-ID: <CAF6rxgmH08e8kMYf920t8bZuZTTZAVhmS3ecvuhQ0xF%2BPAn34A@mail.gmail.com> In-Reply-To: <201212121545.qBCFj4Hl086444@svn.freebsd.org> References: <201212121545.qBCFj4Hl086444@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 12 December 2012 10:45, Pawel Jakub Dawidek <pjd@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAF6rxgmH08e8kMYf920t8bZuZTTZAVhmS3ecvuhQ0xF%2BPAn34A>