diff --git a/liblog/tests/liblog_test.cpp b/liblog/tests/liblog_test.cpp index d1f20f495..383d0e7ca 100644 --- a/liblog/tests/liblog_test.cpp +++ b/liblog/tests/liblog_test.cpp @@ -131,7 +131,7 @@ static bool isPmsgActive() { static bool isLogdwActive() { std::string logdwSignature = - popenToString("grep /dev/socket/logdw /proc/net/unix"); + popenToString("grep -a /dev/socket/logdw /proc/net/unix"); size_t beginning = logdwSignature.find(' '); if (beginning == std::string::npos) return true; beginning = logdwSignature.find(' ', beginning + 1); @@ -145,7 +145,7 @@ static bool isLogdwActive() { end = logdwSignature.find(' ', end + 1); if (end == std::string::npos) return true; std::string allLogdwEndpoints = popenToString( - "grep ' 00000002" + logdwSignature.substr(beginning, end - beginning) + + "grep -a ' 00000002" + logdwSignature.substr(beginning, end - beginning) + " ' /proc/net/unix | " + "sed -n 's/.* \\([0-9][0-9]*\\)$/ -> socket:[\\1]/p'"); if (allLogdwEndpoints.length() == 0) return true;