Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
uuid: use tvh_open instead direct open (O_CLOEXEC issue)
  • Loading branch information
perexg committed Nov 27, 2014
1 parent c2c5b81 commit 36a06a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/uuid.c
Expand Up @@ -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);
Expand Down

0 comments on commit 36a06a6

Please sign in to comment.