Ignore warnings from lsof output (#175)

This seems to cause issues when running alongside
Docker, for example.
This commit is contained in:
Ash McKenzie
2024-08-20 01:51:18 +10:00
committed by GitHub
parent c409f01f3a
commit 7e7c31a227
+1 -1
View File
@@ -88,7 +88,7 @@ class ParseFileName:
def get_open_files_in_dir(dir_name):
result = subprocess.run(['lsof', '-Fn', '+D', f'{dir_name}'], check=False, capture_output=True)
result = subprocess.run(['lsof', '-w', '-Fn', '+D', f'{dir_name}'], check=False, capture_output=True)
ret = result.stdout.decode('utf-8')
err = result.stderr.decode('utf-8')
if err: