Added debug information
This commit is contained in:
parent
c4462b699a
commit
f66b5a58c8
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue