diff --git a/scripts/find-runtime-roots.pl.in b/scripts/find-runtime-roots.pl.in index 91520fe4ea..11c96e8b23 100644 --- a/scripts/find-runtime-roots.pl.in +++ b/scripts/find-runtime-roots.pl.in @@ -43,7 +43,7 @@ sub readProc { sub lsof { - return unless open LSOF, "lsof -n -w -F n |"; + return unless open LSOF, "lsof -n -w -F n 2> /dev/null |"; while () { next unless /^n (\/ .*)$/x;