Only warn about missing /proc/<pid>/fd in bughunt-mode (fixes #15)

This commit is contained in:
Arnout Engelen
2016-01-06 17:58:44 +01:00
parent 3fb86707fa
commit 57fabda440

View File

@@ -155,7 +155,10 @@ void get_info_for_pid(const char * pid) {
if (!dir) if (!dir)
{ {
std::cout << "Couldn't open dir " << dirname << ": " << strerror(errno) << "\n"; if (bughuntmode)
{
std::cout << "Couldn't open dir " << dirname << ": " << strerror(errno) << "\n";
}
return; return;
} }