svn commit: r331279 - in head: include lib/libc/gen lib/libc/sys lib/libc/tests/gen sys/compat/freebsd32 sys/conf sys/kern sys/sys tests/sys/kern usr.bin/truss
Conrad Meyer
cem at freebsd.org
Wed Mar 21 15:37:22 UTC 2018
On Wed, Mar 21, 2018 at 8:23 AM, Konstantin Belousov
<kostikbel at gmail.com> wrote:
> On Wed, Mar 21, 2018 at 08:03:16AM -0700, Conrad Meyer wrote:
>> On Wed, Mar 21, 2018 at 3:33 AM, Konstantin Belousov
>> > Libraries must not abort the application.
>> > Esp. libc.
>>
>> What do you propose instead? while (1); ? I don't see that as
>> obviously better.
>
> Return the error to caller, as all, well most, correct library functions
> do.
The abort() in case of ENOSYS was proposed by delphij at . It is
intended for users that getentropy() not fail. Another possible
fallback is to use the kern.arandom sysctl. Would this be amenable to
you?
Thanks,
Conrad
More information about the svn-src-all
mailing list