mirror of
https://github.com/php/php-src.git
synced 2024-09-23 10:57:26 +00:00
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:
parent
02e6c9c757
commit
a9294d36bc
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user