Bug 199711
Summary: | can getrandom return EINTR if SA_RESTART is specified on all signal handlers but the entropy buffer is not yet initialized | ||
---|---|---|---|
Product: | Documentation | Reporter: | Alex Xu (Hello71) (alex_y_xu) |
Component: | man-pages | Assignee: | documentation_man-pages (documentation_man-pages) |
Status: | NEW --- | ||
Severity: | normal | CC: | tytso |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | Subsystem: | ||
Regression: | No | Bisected commit-id: | |
Attachments: | grnd-signal.c |
Description
Alex Xu (Hello71)
2018-05-13 15:01:54 UTC
but either way, the first part should be amended to either say "unless SA_RESTART was specified for the signal handler" or it should say "even if SA_RESTART ..." Created attachment 275963 [details]
grnd-signal.c
I tested this program and found that getrandom respects SA_RESTART if the pool is not initialized.
|