aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-09-03 14:44:20 +0000
committerlloyd <[email protected]>2010-09-03 14:44:20 +0000
commit1c73edd37cd7264780e9a8c699d61433231ef472 (patch)
treee351f432bc2f258843a4dd0701d5df1532233c00
parentfb68795162b8d107cbd284c4a75d8e13ce589829 (diff)
Remove calling getsid, it causes problems with too many different
various compilers/platforms, and likely doesn't contribute much of anything. Also only grab real uid and gid, ignoring effective ids.
-rw-r--r--src/entropy/unix_procs/es_unix.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/entropy/unix_procs/es_unix.cpp b/src/entropy/unix_procs/es_unix.cpp
index 039479308..3a5c5aca1 100644
--- a/src/entropy/unix_procs/es_unix.cpp
+++ b/src/entropy/unix_procs/es_unix.cpp
@@ -74,10 +74,8 @@ void Unix_EntropySource::poll(Entropy_Accumulator& accum)
accum.add(::getpid(), 0);
accum.add(::getppid(), 0);
accum.add(::getuid(), 0);
- accum.add(::geteuid(), 0);
- accum.add(::getegid(), 0);
+ accum.add(::getgid(), 0);
accum.add(::getpgrp(), 0);
- accum.add(::getsid(0), 0);
struct ::rusage usage;
::getrusage(RUSAGE_SELF, &usage);