Page MenuHomeFreeBSD

getentropy(3): Trap non-API errnos from getrandom(2) and abort

Authored by cem on Sep 5 2018, 3:54 PM.



Additionally, reconcile our abort behavior with arc4random(3). Unlike
SIGABRT, SIGKILL cannot be caught by the user program. These failures
are fatal conditions and should not return to the caller, as they did in
the instance that resulted in D17049.

While here, fix some minor typos in a comment.

Diff Detail

rS FreeBSD src repository
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

cem created this revision.Sep 5 2018, 3:54 PM
delphij accepted this revision.Sep 6 2018, 8:37 PM


This revision is now accepted and ready to land.Sep 6 2018, 8:37 PM
This revision was automatically updated to reflect the committed changes.