remove package/gdb reference from Config.in, seems like this package is not checked...
[openwrt.git] / package / ser / patches / 120-main.patch
1 --- ser-0.8.14.orig/main.c 2004-06-28 17:41:21.000000000 +0200
2 +++ ser-0.8.14/main.c 2005-01-07 23:24:27.000000000 +0100
3 @@ -1447,18 +1447,20 @@
4 /* seed the prng */
5 /* try to use /dev/random if possible */
6 seed=0;
7 +/* this read call is blocking on OpenWRT, further investigations are necessary
8 if ((rfd=open("/dev/random", O_RDONLY))!=-1){
9 try_again:
10 if (read(rfd, (void*)&seed, sizeof(seed))==-1){
11 - if (errno==EINTR) goto try_again; /* interrupted by signal */
12 + if (errno==EINTR) goto try_again;
13 LOG(L_WARN, "WARNING: could not read from /dev/random (%d)\n",
14 errno);
15 }
16 DBG("read %u from /dev/random\n", seed);
17 close(rfd);
18 }else{
19 - LOG(L_WARN, "WARNING: could not open /dev/random (%d)\n", errno);
20 - }
21 +*/
22 + LOG(L_WARN, "WARNING: could not read from /dev/random (%d)\n", errno);
23 +// }
24 seed+=getpid()+time(0);
25 DBG("seeding PRNG with %u\n", seed);
26 srand(seed);
This page took 0.050278 seconds and 5 git commands to generate.