diff options
author | kaie%kuix.de <devnull@localhost> | 2007-12-03 19:28:34 +0000 |
---|---|---|
committer | kaie%kuix.de <devnull@localhost> | 2007-12-03 19:28:34 +0000 |
commit | c41ac55f5bd5b8bccb5eab065c793aef80bfe212 (patch) | |
tree | 08f0fdd22280537b8f28bc99ee82623ed604b70d | |
parent | 2a7c0aa8a4c53ec9830f37007df602d3a9f94f5f (diff) | |
download | nss-hg-c41ac55f5bd5b8bccb5eab065c793aef80bfe212.tar.gz |
Bug 51429, removed unused DO_PS code
r=wtc
-rw-r--r-- | security/nss/lib/freebl/unix_rand.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/security/nss/lib/freebl/unix_rand.c b/security/nss/lib/freebl/unix_rand.c index 374fc8edc..332eeb8a7 100644 --- a/security/nss/lib/freebl/unix_rand.c +++ b/security/nss/lib/freebl/unix_rand.c @@ -922,15 +922,6 @@ void RNG_SystemInfoForRNG(void) }; #endif -#ifdef DO_PS -For now it is considered that it is too expensive to run the ps command -for the small amount of entropy it provides. -#if defined(__sun) && (!defined(__svr4) && !defined(SVR4)) || defined(bsdi) || defined(LINUX) - static char ps_cmd[] = "ps aux"; -#else - static char ps_cmd[] = "ps -el"; -#endif -#endif /* DO_PS */ #if defined(BSDI) static char netstat_ni_cmd[] = "netstat -nis"; #else @@ -1011,15 +1002,6 @@ for the small amount of entropy it provides. } #endif -#ifdef DO_PS - fp = safe_popen(ps_cmd); - if (fp != NULL) { - while ((bytes = fread(buf, 1, sizeof(buf), fp)) > 0) - RNG_RandomUpdate(buf, bytes); - safe_pclose(fp); - } -#endif - #ifdef DO_NETSTAT fp = safe_popen(netstat_ni_cmd); if (fp != NULL) { |