mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
urandom: Use O_CLOEXEC.
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
|
||||
open Unix
|
||||
|
||||
let open_urandom_fd () = openfile "/dev/urandom" [O_RDONLY] 0
|
||||
let open_urandom_fd () = openfile "/dev/urandom" [O_RDONLY; O_CLOEXEC] 0
|
||||
|
||||
let read_byte fd =
|
||||
let b = Bytes.make 1 ' ' in
|
||||
|
||||
Reference in New Issue
Block a user