Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F173411476
D19742.id55568.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
657 B
Referenced Files
None
Subscribers
None
D19742.id55568.diff
View Options
Index: libexec/save-entropy/save-entropy.sh
===================================================================
--- libexec/save-entropy/save-entropy.sh
+++ libexec/save-entropy/save-entropy.sh
@@ -80,6 +80,7 @@
while [ ${n} -ge 1 ]; do
if [ -f "saved-entropy.${n}" ]; then
mv "saved-entropy.${n}" "saved-entropy.$(( ${n} + 1 ))"
+ fsync .
elif [ -e "saved-entropy.${n}" -o -L "saved-entropy.${n}" ]; then
logger -is -t "$0" \
"${entropy_dir}/saved-entropy.${n}" is not a regular file, and so \
@@ -90,5 +91,7 @@
done
dd if=/dev/random of=saved-entropy.1 bs=${entropy_save_sz} count=1 2>/dev/null
+fsync saved-entropy.1
+fsync .
exit 0
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Sep 26, 7:14 PM (4 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39686365
Default Alt Text
D19742.id55568.diff (657 B)
Attached To
Mode
D19742: random(4): Attempt to persist entropy promptly
Attached
Detach File
Event Timeline
Log In to Comment