From 914ff3804580ae54b1e28a11765096b3fd2793fd Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Sat, 12 Feb 2022 18:23:39 +0100 Subject: [PATCH] Added debug information --- archinstall/lib/general.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/archinstall/lib/general.py b/archinstall/lib/general.py index 0035c85e..286c6ed3 100644 --- a/archinstall/lib/general.py +++ b/archinstall/lib/general.py @@ -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]