Added debug information
This commit is contained in:
parent
bcc8aa0477
commit
a345d50923
|
|
@ -530,6 +530,7 @@ 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