diff options
author | Felix Fietkau <nbd@openwrt.org> | 2005-04-30 22:52:49 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2005-04-30 22:52:49 +0000 |
commit | be952e34e888cd4f3e1c83195d9da74c35e7eb62 (patch) | |
tree | 476eff6d81d510c7b5a60aa9a0bd977e8de4b19c /package/ser/patches/120-main.patch | |
parent | 0914480a1cb22c5027a6086e55646d5ae93b80d6 (diff) | |
download | upstream-be952e34e888cd4f3e1c83195d9da74c35e7eb62.tar.gz upstream-be952e34e888cd4f3e1c83195d9da74c35e7eb62.tar.bz2 upstream-be952e34e888cd4f3e1c83195d9da74c35e7eb62.zip |
revert to older version of 'ser', the new one just doesn't work
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@781 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/ser/patches/120-main.patch')
-rw-r--r-- | package/ser/patches/120-main.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/package/ser/patches/120-main.patch b/package/ser/patches/120-main.patch new file mode 100644 index 0000000000..eacd0cc23c --- /dev/null +++ b/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); |