diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-04-30 22:52:49 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-04-30 22:52:49 +0000 |
commit | 23386132c92b92d5af9e4a0fe8c6b4adb0419c28 (patch) | |
tree | c4b7153c8d4d9e7a1ac5db3f26aab69875328d0d /openwrt/package/ser/patches/120-main.patch | |
parent | 304fa6181cf2002f98f3537b4cf625a81ef06d05 (diff) |
revert to older version of 'ser', the new one just doesn't work
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@781 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/ser/patches/120-main.patch')
-rw-r--r-- | openwrt/package/ser/patches/120-main.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/openwrt/package/ser/patches/120-main.patch b/openwrt/package/ser/patches/120-main.patch new file mode 100644 index 000000000..eacd0cc23 --- /dev/null +++ b/openwrt/package/ser/patches/120-main.patch @@ -0,0 +1,26 @@ +--- ser-0.8.14.orig/main.c 2004-06-28 17:41:21.000000000 +0200 ++++ ser-0.8.14/main.c 2005-01-07 23:24:27.000000000 +0100 +@@ -1447,18 +1447,20 @@ + /* seed the prng */ + /* try to use /dev/random if possible */ + seed=0; ++/* this read call is blocking on OpenWRT, further investigations are necessary + if ((rfd=open("/dev/random", O_RDONLY))!=-1){ + try_again: + if (read(rfd, (void*)&seed, sizeof(seed))==-1){ +- if (errno==EINTR) goto try_again; /* interrupted by signal */ ++ if (errno==EINTR) goto try_again; + LOG(L_WARN, "WARNING: could not read from /dev/random (%d)\n", + errno); + } + DBG("read %u from /dev/random\n", seed); + close(rfd); + }else{ +- LOG(L_WARN, "WARNING: could not open /dev/random (%d)\n", errno); +- } ++*/ ++ LOG(L_WARN, "WARNING: could not read from /dev/random (%d)\n", errno); ++// } + seed+=getpid()+time(0); + DBG("seeding PRNG with %u\n", seed); + srand(seed); |