[Olsr-dev] Olsrd 0.6.5.2 is freezing at start

Douglas Diniz (spam-protected)
Wed Mar 27 19:01:10 CET 2013


Hi Henning, your patch seems to be working now.
I'll do more tests, but now seems to be fixed. :D

Thanks.....

On Wed, Mar 27, 2013 at 2:51 PM, Henning Rogge <(spam-protected)>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
>
> --
> 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
>



-- 
-------------------------------------------------------------------
Douglas Gameiro Diniz
Engenheiro de Computação - 2003 - UNICAMP

Mobile: (19) 92158777
Gtalk: dgdiniz
Msn: (spam-protected)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.olsr.org/pipermail/olsr-dev/attachments/20130327/b2ba259c/attachment.html>


More information about the Olsr-dev mailing list