Searched refs:random_fd (Results 1 – 2 of 2) sorted by relevance
56 static int random_fd = -1; variable334 if (random_fd >= 0) { in random_close_fd()335 eloop_unregister_read_sock(random_fd); in random_close_fd()336 close(random_fd); in random_close_fd()337 random_fd = -1; in random_close_fd()450 if (random_fd >= 0) in random_init()466 random_fd = open("/dev/random", O_RDONLY | O_NONBLOCK); in random_init()467 if (random_fd < 0) { in random_init()475 eloop_register_read_sock(random_fd, random_read_fd, NULL, NULL); in random_init()