Added debug information

This commit is contained in:
Anton Hvornum 2022-02-12 18:23:39 +01:00
parent 95ebbddfcb
commit 914ff38045
No known key found for this signature in database
GPG Key ID: F1234C5BA67C59DF
1 changed files with 2 additions and 1 deletions

View File

@ -339,9 +339,10 @@ class SysCommandWorker:
except OSError as error:
self.ended = time.time()
self.exit_code = os.waitpid(self.pid, 0)[1]
os.close(self.child_fd)
break
if pid_exists(self.pid) is False:
if pid_exists(self.pid) is False and self.exit_code is None:
self.ended = time.time()
try:
self.exit_code = os.waitpid(self.pid, 0)[1]