]> Sergey Matveev's repositories - public-inbox.git/commit
favor `getconf _NPROCESSORS_ONLN` over GNU nproc
authorEric Wong <e@yhbt.net>
Sat, 8 Aug 2020 11:24:05 +0000 (11:24 +0000)
committerEric Wong <e@yhbt.net>
Sun, 9 Aug 2020 18:41:42 +0000 (18:41 +0000)
commitc538c9593e4c4d8185c3131eab2d14c383fafe8f
tree7199fcb0f9bc53e1757e2740aacbdd8a953d72b0
parent5458d831698f79c58adf955dc11753d3b560374d
favor `getconf _NPROCESSORS_ONLN` over GNU nproc

getconf(1) itself is POSIX, while `_NPROCESSORS_ONLN' is not.
However, FreeBSD (tested 11.4 and 12.1) and glibc (tested CentOS
7.x and Debian 10.x) both support `getconf _NPROCESSORS_ONLN'.

GNU coreutils (and thus `nproc' or `gnproc') are not installed
by default on the *BSDs, so we'll try the option most likely
to exist on both glibc and *BSDs out-of-the-box.
Makefile.PL
lib/PublicInbox/V2Writable.pm