uuid: use tvh_open instead direct open (O_CLOEXEC issue)
This commit is contained in:
parent
c2c5b81330
commit
36a06a66e0
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ bin2hex(char *dst, size_t dstlen, const uint8_t *src, size_t srclen)
|
|||
void
|
||||
uuid_init ( void )
|
||||
{
|
||||
fd = open(RANDOM_PATH, O_RDONLY|O_CLOEXEC);
|
||||
fd = tvh_open(RANDOM_PATH, O_RDONLY, 0);
|
||||
if (fd == -1) {
|
||||
tvherror("uuid", "failed to open %s", RANDOM_PATH);
|
||||
exit(1);
|
||||
|
|
Loading…
Add table
Reference in a new issue