Fix "finds no files to restart"
Regression introduced in commit 96ddaa08 (debian-goodies 0.77).
Closes: #882080
Axel Beckert
6 years ago
366 | 366 |
from subprocess import check_output
|
367 | 367 |
processes = {}
|
368 | 368 |
|
369 | |
for line in check_output(['lsof', '+XL', '-F', 'nf']).splitlines():
|
370 | |
field, data = line[0], line[1:-1]
|
|
369 |
for line in check_output(['lsof', '+XL', '-F', 'nf']).decode(errors="ignore").splitlines():
|
|
370 |
field, data = line[0], line[1:]
|
371 | 371 |
|
372 | 372 |
if field == 'p':
|
373 | 373 |
process = processes.setdefault(data,Process(int(data)))
|
0 | 0 |
debian-goodies (0.78) UNRELEASED; urgency=medium
|
1 | 1 |
|
2 | |
* checkrestart: Fix TypeError with option "-n". (Closes: #882104)
|
|
2 |
* Fix checkrestart regressions from 0.77:
|
|
3 |
+ Fix TypeError with option "-n". (Closes: #882104)
|
|
4 |
+ Fix "finds no files to restart". (Closes: #882080)
|
3 | 5 |
|
4 | 6 |
-- Axel Beckert <abe@debian.org> Sun, 19 Nov 2017 01:51:45 +0100
|
5 | 7 |
|