Added debug information

This commit is contained in:
Anton Hvornum 2022-02-12 15:10:18 +01:00
parent c4462b699a
commit f66b5a58c8
No known key found for this signature in database
GPG Key ID: F1234C5BA67C59DF
1 changed files with 0 additions and 1 deletions

View File

@ -541,7 +541,6 @@ def reboot():
def pid_exists(pid: int) -> bool:
print(f'Checking if pid {pid} exists.')
try:
return any(subprocess.check_output(['/usr/bin/ps', '--no-headers', '-o', 'pid', '-p', str(pid)]).strip())
except subprocess.CalledProcessError: