Searched refs:random_fd (Results 1 – 2 of 2) sorted by relevance
55 static int random_fd = -1; variable329 if (random_fd >= 0) { in random_close_fd()330 eloop_unregister_read_sock(random_fd); in random_close_fd()331 close(random_fd); in random_close_fd()332 random_fd = -1; in random_close_fd()445 if (random_fd >= 0) in random_init()461 random_fd = open("/dev/random", O_RDONLY | O_NONBLOCK); in random_init()462 if (random_fd < 0) { in random_init()470 eloop_register_read_sock(random_fd, random_read_fd, NULL, NULL); in random_init()
117 int random_fd = open("/dev/random", O_RDONLY); in wait_on_devrandom() local118 if (random_fd < 0) { in wait_on_devrandom()121 if (set_cloexec(random_fd) < 0) { in wait_on_devrandom()124 pfd.fd = random_fd; in wait_on_devrandom()130 close(random_fd); in wait_on_devrandom()