On Wed, Oct 16, 2019 at 06:16:57PM +0000, Niclas Rosenvik wrote: > On Mon, 14 Oct 2019 20:40:10 +0000 > co...@sdf.org wrote: > > > Patch attached. Needed this for sudo update. > > > > Please tell me how I am wrong. > > Thanks. > > According to the opengroup docs on sysconf _SC_RTSIG_MAX is to return > the same value as RTSIG_MAX that might be defined in limits.h. > RTSIG_MAX is defined as "the number of realtime signals reserved for > application use in this implementation" with a value of at least > _POSIX_RTSIG_MAX defined in limits.h. That is the difference between > SIGRTMAX and SIGRTMIN, not SIGRTMAX. RTSIG_MAX is not guaranteed to be > defined but _POSIX_RTSIG_MAX shall be defined to 8 in limits.h. > Make sysconf return SIGRTMAX - SIGRTMIN Thanks.
> and define _POSIX_RTSIG_MAX to 8 in limits.h What is POSIX thinking with that requirement...?