Ignore spurious stderr output from lsof

lsof may report errors trying to stat files owned by other
users in other processes, even when asking for files
associated to a specific process.  Boo.
This commit is contained in:
Sara Golemon 2017-06-01 15:40:26 -07:00
parent 02e6c9c757
commit a9294d36bc

View File

@ -13,7 +13,7 @@ if ($status !== 0) {
--FILE--
<?php
function countOpenFiles() {
exec('lsof -p ' . getmypid(), $out);
exec('lsof -p ' . getmypid() . ' 2> /dev/null', $out);
return count($out);
}
$filename = __DIR__ . '/bug70417.tar';