[Olsr-dev] Olsrd 0.6.5.2 is freezing at start
Ferry Huberts
(spam-protected)
Wed Mar 27 19:01:07 CET 2013
I've fixed it on the release branch and cherry-picked it onto master.
On 27/03/13 13:51, Henning Rogge wrote:
> 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
>
--
Ferry Huberts
More information about the Olsr-dev
mailing list