Be more resilient about non-existing uid's (fixes #18)

This commit is contained in:
Arnout Engelen
2016-01-11 17:25:22 +01:00
parent 4bb66ea2ef
commit e6df508fbf

View File

@@ -492,13 +492,6 @@ void do_refresh()
forceExit(false, "Invalid viewMode: %d", viewMode);
}
uid_t uid = curproc->getVal()->getUid();
#ifndef NDEBUG
struct passwd * pwuid = getpwuid(uid);
assert (pwuid != NULL);
// value returned by pwuid should not be freed, according to
// Petr Uzel.
//free (pwuid);
#endif
assert (curproc->getVal()->pid >= 0);
assert (n < nproc);