[Olsr-dev] Olsrd 0.6.5.2 is freezing at start
Henning Rogge
(spam-protected)
Wed Mar 27 18:51:59 CET 2013
Can you apply the following patch to your code and run them again?
diff --git a/src/main.c b/src/main.c
index e741457..b9cea5a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -287,10 +287,7 @@ static void initRandom(void) {
#ifndef _WIN32
int randomFile;
- randomFile = open("/dev/random", O_RDONLY);
- if (randomFile == -1) {
- randomFile = open("/dev/urandom", O_RDONLY);
- }
+ randomFile = open("/dev/urandom", O_RDONLY);
if (randomFile != -1) {
if (read(randomFile, &seed, sizeof(seed)) != sizeof(seed)) {
Henning Rogge
--
We began as wanderers, and we are wanderers still. We have lingured
long enough on the shores of the cosmic ocean. We are ready at last to
set sail for the stars - Carl Sagan
More information about the Olsr-dev
mailing list